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 HMJobtaskIdentifyMap : APTEntityBaseMap<T_HM_JOBTASK_IDENTIFY>
    {
        public override void Configure(EntityTypeBuilder<T_HM_JOBTASK_IDENTIFY> builder)
        {
            base.Configure(builder);
            builder.HasOne(t => t.Nav_CreateUser).WithMany().HasForeignKey(t => t.CREATER_ID).OnDelete(DeleteBehavior.Restrict);
        }
    }
}
