using APT.Infrastructure.Core; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace APT.Infrastructure.EF.Map { public class DataUpdateRecordMap : EntityBaseMap { public override void Configure(EntityTypeBuilder builder) { base.Configure(builder); builder.Property(t => t.EntityName) //.IsRequired() .HasMaxLength(50); builder.Property(t => t.EntityFullName) //.IsRequired() .HasMaxLength(200); builder.Property(t => t.UpdateFiled) //.IsRequired() .HasMaxLength(2000); builder.Property(t => t.ENTITY_ORG_TPYE); } } }