49 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
//------------------------------------------------------------------------------
 | 
						|
// <autogenerated>
 | 
						|
//     This code was generated by a CodeSmith Template.
 | 
						|
//
 | 
						|
//     DO NOT MODIFY contents of this file. Changes to this
 | 
						|
//     file will be lost if the code is regenerated.
 | 
						|
// </autogenerated>
 | 
						|
//------------------------------------------------------------------------------
 | 
						|
using APT.BaseData.Domain.Entities;
 | 
						|
using APT.Infrastructure.EF.Map;
 | 
						|
using Microsoft.EntityFrameworkCore;
 | 
						|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
 | 
						|
 | 
						|
namespace APT.BaseData.Data.Mapping
 | 
						|
{
 | 
						|
	public partial class PFFlowSchemeMap : APTEntityBaseMap<T_PF_FLOW_SCHEME>
 | 
						|
    {
 | 
						|
		public override void Configure(EntityTypeBuilder<T_PF_FLOW_SCHEME> builder)
 | 
						|
		{
 | 
						|
			base.Configure(builder);
 | 
						|
			builder.Property(t => t.SchemeCode)
 | 
						|
				.HasMaxLength(50) ;
 | 
						|
			builder.Property(t => t.SchemeName)
 | 
						|
				.HasMaxLength(200) ;
 | 
						|
			builder.Property(t => t.SchemeContent) ;
 | 
						|
			builder.Property(t => t.SortCode)
 | 
						|
				.IsRequired();
 | 
						|
			builder.Property(t => t.Disabled)
 | 
						|
				.IsRequired();
 | 
						|
			builder.Property(t => t.Description)
 | 
						|
				.HasMaxLength(200) ;
 | 
						|
			builder.Property(t => t.CreateDate)
 | 
						|
				.IsRequired();
 | 
						|
			builder.Property(t => t.CreateUserId)
 | 
						|
				.HasMaxLength(50) ;
 | 
						|
			builder.Property(t => t.CreateUserName)
 | 
						|
				.HasMaxLength(50) ;
 | 
						|
			builder.Property(t => t.ModifyDate) ;
 | 
						|
			builder.Property(t => t.ModifyUserId)
 | 
						|
				.HasMaxLength(50) ;
 | 
						|
			builder.Property(t => t.ModifyUserName)
 | 
						|
				.HasMaxLength(50) ;
 | 
						|
			builder.HasOne(t => t.Form).WithMany().HasForeignKey(t => t.FrmId).OnDelete(DeleteBehavior.Restrict);
 | 
						|
			builder.HasOne(t => t.PermitForm).WithMany().HasForeignKey(t => t.PermitFrmId).OnDelete(DeleteBehavior.Restrict);
 | 
						|
		}
 | 
						|
		 
 | 
						|
    }
 | 
						|
}
 |