20 lines
		
	
	
		
			563 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			563 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using APT.BaseData.Domain.Entities;
 | 
						|
using APT.Infrastructure.EF.Map;
 | 
						|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
 | 
						|
 | 
						|
namespace APT.BaseData.Data.Mapping
 | 
						|
{
 | 
						|
	public class PFImgFileMap : APTEntityBaseMap<T_PF_IMG_FILE>
 | 
						|
	{
 | 
						|
		public override void Configure(EntityTypeBuilder<T_PF_IMG_FILE> builder)
 | 
						|
		{
 | 
						|
			base.Configure(builder);
 | 
						|
			builder.Property(t => t.FILE_NAME).HasMaxLength(200);
 | 
						|
			builder.Property(t => t.FILE_TYPE).HasMaxLength(100);
 | 
						|
			builder.HasOne(t => t.Nav_File).WithMany(t=>t.Nav_ImgFiles).
 | 
						|
				HasForeignKey(t => t.FILE_ID);
 | 
						|
		}
 | 
						|
		 
 | 
						|
	}
 | 
						|
}
 |