//------------------------------------------------------------------------------ // // 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 ER_DegreeApply_Mapping : EntityTypeConfiguration { public ER_DegreeApply_Mapping() { this.HasKey(t => t.DegreeApplyID); this.ToTable("ER_DegreeApply"); this.Property(t => t.DegreeApplyID).HasColumnName("DegreeApplyID"); this.Property(t => t.GraduationApplyID).HasColumnName("GraduationApplyID"); this.Property(t => t.ApplySchoolyearID).HasColumnName("ApplySchoolyearID"); this.Property(t => t.DegreeConditionPackageID).HasColumnName("DegreeConditionPackageID"); this.Property(t => t.DegreeBatchID).HasColumnName("DegreeBatchID"); this.Property(t => t.DegreeNo).HasColumnName("DegreeNo").IsUnicode(false).HasMaxLength(50); this.Property(t => t.GrantDate).HasColumnName("GrantDate"); this.Property(t => t.ApprovalStatus).HasColumnName("ApprovalStatus"); this.Property(t => t.DegreeResult).HasColumnName("DegreeResult"); this.Property(t => t.ApprovalResult).HasColumnName("ApprovalResult"); this.Property(t => t.RecordStatus).HasColumnName("RecordStatus"); this.Property(t => t.Remark).HasColumnName("Remark"); this.Property(t => t.CreateTime).HasColumnName("CreateTime"); this.Property(t => t.CreateUserID).HasColumnName("CreateUserID"); this.Property(t => t.ModifyTime).HasColumnName("ModifyTime"); this.Property(t => t.ModifyUserID).HasColumnName("ModifyUserID"); this.HasOptional(t => t.CF_Schoolyear).WithMany(t => t.ER_DegreeApply).HasForeignKey(d => d.ApplySchoolyearID); this.HasOptional(t => t.ER_DegreeConditionPackage).WithMany(t => t.ER_DegreeApply).HasForeignKey(d => d.DegreeConditionPackageID); this.HasOptional(t => t.ER_GraduationApply).WithMany(t => t.ER_DegreeApply).HasForeignKey(d => d.GraduationApplyID); } } }