using APT.Infrastructure.EF.Map;
using APT.MS.Domain.Entities.HM;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Text;

namespace APT.MS.Data.Mapping.HM
{
    public partial class HMCrucialTaskAnalysisMap : APTEntityBaseMap<T_HM_CRUCIAL_TASK_ANALYSIS>
    {
        public override void Configure(EntityTypeBuilder<T_HM_CRUCIAL_TASK_ANALYSIS> builder)
        {
            base.Configure(builder);
            builder.HasOne(t => t.Nav_CreateUser).WithMany().HasForeignKey(t => t.CREATER_ID).OnDelete(DeleteBehavior.Restrict);
        }
    }
}
