mh_frame_sps/APT.Infrastructure.EF/Map/DataUpdateRecordMap.cs

31 lines
811 B
C#
Raw Normal View History

2026-04-07 13:47:52 +08:00
using APT.Infrastructure.Core;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace APT.Infrastructure.EF.Map
{
public class DataUpdateRecordMap : EntityBaseMap<DataUpdateRecord, int>
{
public override void Configure(EntityTypeBuilder<DataUpdateRecord> 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);
}
}
}