//------------------------------------------------------------------------------
//
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerated.
//
//------------------------------------------------------------------------------
namespace EMIS.Entities
{
#pragma warning disable 1573
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data.Common;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity.Infrastructure;
using System.ComponentModel.DataAnnotations.Schema;
internal partial class CF_StudentSource_Mapping : EntityTypeConfiguration
{
public CF_StudentSource_Mapping()
{
this.HasKey(t => t.StudentContrastID);
this.ToTable("CF_StudentSource");
this.Property(t => t.StudentContrastID).HasColumnName("StudentContrastID");
this.Property(t => t.ClassmajorID).HasColumnName("ClassmajorID");
this.Property(t => t.SexID).HasColumnName("SexID");
this.Property(t => t.BirthDate).HasColumnName("BirthDate");
this.Property(t => t.NationID).HasColumnName("NationID");
this.Property(t => t.PoliticsID).HasColumnName("PoliticsID");
this.Property(t => t.CertificatesType).HasColumnName("CertificatesType");
this.Property(t => t.IDNumber).HasColumnName("IDNumber").IsUnicode(false).HasMaxLength(20);
this.Property(t => t.StudentType).HasColumnName("StudentType");
this.Property(t => t.InSchoolStatusID).HasColumnName("InSchoolStatusID");
this.Property(t => t.StudentStatus).HasColumnName("StudentStatus");
this.Property(t => t.StudentCardNo).HasColumnName("StudentCardNo").IsUnicode(false).HasMaxLength(50);
this.Property(t => t.PhotoUrl).HasColumnName("PhotoUrl").IsUnicode(false).HasMaxLength(500);
this.Property(t => t.PlanningGraduateDate).HasColumnName("PlanningGraduateDate");
this.Property(t => t.GraduateDate).HasColumnName("GraduateDate");
this.Property(t => t.GraduateCardNo).HasColumnName("GraduateCardNo").IsUnicode(false).HasMaxLength(50);
this.Property(t => t.ReplaceGraduateNo).HasColumnName("ReplaceGraduateNo").IsUnicode(false).HasMaxLength(50);
this.Property(t => t.DegreeStatus).HasColumnName("DegreeStatus");
this.Property(t => t.GraduationPictureUrl).HasColumnName("GraduationPictureUrl").IsUnicode(false).HasMaxLength(500);
this.Property(t => t.Career).HasColumnName("Career");
this.Property(t => t.IsPhotoComparison).HasColumnName("IsPhotoComparison");
this.Property(t => t.IsProofread).HasColumnName("IsProofread");
this.Property(t => t.Remark).HasColumnName("Remark");
this.HasRequired(t => t.CF_StudentContrast).WithOptional(t => t.CF_StudentSource);
}
}
}