18 lines
574 B
C#
18 lines
574 B
C#
|
|
using APT.Infrastructure.EF.Map;
|
|||
|
|
using APT.BaseData.Domain.Entities.FM;
|
|||
|
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
|||
|
|
using Microsoft.EntityFrameworkCore;
|
|||
|
|
|
|||
|
|
namespace APT.BaseData.Data.Mapping.FM
|
|||
|
|
{
|
|||
|
|
public class FMNotificationPermitMap : APTEntityBaseMap<T_FM_NOTIFICATION_PERMIT>
|
|||
|
|
{
|
|||
|
|
public override void Configure(EntityTypeBuilder<T_FM_NOTIFICATION_PERMIT> builder)
|
|||
|
|
{
|
|||
|
|
base.Configure(builder);
|
|||
|
|
builder.HasOne(t => t.Nav_Notification).
|
|||
|
|
WithMany(t => t.Nav_Permits).HasForeignKey(t => t.NOTIFICATION_ID).OnDelete(DeleteBehavior.Restrict);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|