24 lines
744 B
C#
24 lines
744 B
C#
|
|
using APT.Infrastructure.Core;
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|
|
|
namespace APT.Infrastructure.EF.Map
|
|
{
|
|
public class PFCodeRuleSerialMap : APTEntityBaseMap<T_PF_CODE_RULE_SERIAL>
|
|
{
|
|
public override void Configure(EntityTypeBuilder<T_PF_CODE_RULE_SERIAL> builder)
|
|
{
|
|
base.Configure(builder);
|
|
builder.Property(t => t.SERIAL)
|
|
.HasMaxLength(50);
|
|
builder.Property(t => t.DATE_VALUE)
|
|
.HasMaxLength(30);
|
|
builder.HasIndex("ORG_ID", "CODE_TYPE", "SERIAL");
|
|
builder.HasIndex("ORG_ID","CODE_TYPE","STATUS", "NUM");
|
|
builder.HasIndex("ORG_ID", "CODE_TYPE", "DATE_VALUE", "SERIAL");
|
|
builder.HasIndex("ORG_ID", "CODE_TYPE", "DATE_VALUE", "STATUS", "NUM");
|
|
}
|
|
|
|
}
|
|
}
|