31 lines
811 B
C#
31 lines
811 B
C#
|
|
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);
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|