mh_sms/APT.BaseData.Data/Mapping/FM/FMRoleMap.cs
2024-04-12 16:50:28 +08:00

26 lines
686 B
C#

using APT.Infrastructure.EF.Map;
using APT.BaseData.Domain.Entities.FM;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace APT.BaseData.Data.Mapping.FM
{
public class FMRoleMap : APTEntityBaseMap<T_FM_ROLE>
{
public override void Configure(EntityTypeBuilder<T_FM_ROLE> builder)
{
base.Configure(builder);
builder.Property(t => t.NAME)
.HasMaxLength(50);
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(100);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.REMARK).HasMaxLength(400);
builder.Ignore(t => t.CheckKeys);
builder.Ignore(t => t.DepartmentCheckedKeys);
}
}
}