Files
Backend-Api/CompanyManagment.EFCore/Mapping/FineSubjectMapping.cs

17 lines
488 B
C#

using Company.Domain.FineSubjectAgg;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace CompanyManagment.EFCore.Mapping;
public class FineSubjectMapping:IEntityTypeConfiguration<FineSubject>
{
public void Configure(EntityTypeBuilder<FineSubject> builder)
{
builder.ToTable("FineSubjects");
builder.HasKey(x => x.id);
builder.Property(x => x.Amount).HasMaxLength(25);
builder.Property(x => x.Title).HasMaxLength(255);
}
}