123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- //------------------------------------------------------------------------------
- // <auto-generated>
- // 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.
- // </auto-generated>
- //------------------------------------------------------------------------------
- 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_Student_Mapping : EntityTypeConfiguration<CF_Student>
- {
- public CF_Student_Mapping()
- {
- this.HasKey(t => t.UserID);
- this.ToTable("CF_Student");
- this.Property(t => t.UserID).HasColumnName("UserID");
- 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.Property(t => t.RecordStatus).HasColumnName("RecordStatus");
- this.Property(t => t.CreateUserID).HasColumnName("CreateUserID");
- this.Property(t => t.CreateTime).HasColumnName("CreateTime");
- this.Property(t => t.ModifyUserID).HasColumnName("ModifyUserID");
- this.Property(t => t.ModifyTime).HasColumnName("ModifyTime");
- this.HasOptional(t => t.CF_Classmajor).WithMany(t => t.CF_Student).HasForeignKey(d => d.ClassmajorID);
- this.HasRequired(t => t.Sys_User).WithOptional(t => t.CF_Student);
- this.HasMany(t => t.DQP_SOC).WithMany(t => t.CF_Student)
- .Map(m =>
- {
- m.ToTable("DQP_SOC_CF_Student");
- m.MapLeftKey("UserID");
- m.MapRightKey("SOCID");
- });
- this.HasMany(t => t.DQP_SOCDetailGroup).WithMany(t => t.CF_Student)
- .Map(m =>
- {
- m.ToTable("DQP_SOCDetailGroup_CF_Student");
- m.MapLeftKey("UserID");
- m.MapRightKey("SOCDetailGroupID");
- });
- this.HasMany(t => t.DQP_SOCStaff).WithMany(t => t.CF_Student)
- .Map(m =>
- {
- m.ToTable("DQP_SOCStaff_CF_Student");
- m.MapLeftKey("UserID");
- m.MapRightKey("SOCStaffID");
- });
- this.HasMany(t => t.EM_EvaluationSetting).WithMany(t => t.CF_Student)
- .Map(m =>
- {
- m.ToTable("EM_EvaluationSetting_CF_Student");
- m.MapLeftKey("UserID");
- m.MapRightKey("EvaluationSettingID");
- });
- this.HasMany(t => t.EM_EvaluationStudentSetting).WithMany(t => t.CF_Student)
- .Map(m =>
- {
- m.ToTable("EM_EvaluationStudentSetting_CF_Student");
- m.MapLeftKey("UserID");
- m.MapRightKey("EvaluationStudentSettingID");
- });
- this.HasMany(t => t.EM_ExecutableFreeSelectionCouse).WithMany(t => t.CF_Student)
- .Map(m =>
- {
- m.ToTable("EM_ExecutableFreeSelectionCouseStudent");
- m.MapLeftKey("UserID");
- m.MapRightKey("ExecutableFreeSelectionCouseID");
- });
- this.HasMany(t => t.EM_ExecutableOptionalCourse).WithMany(t => t.CF_Student)
- .Map(m =>
- {
- m.ToTable("EM_ExecutableOptionalCourse_CF_Student");
- m.MapLeftKey("UserID");
- m.MapRightKey("ExecutableOptionalCourseID");
- });
- this.HasMany(t => t.ER_RetakePlan).WithMany(t => t.CF_Student)
- .Map(m =>
- {
- m.ToTable("ER_RetakePlan_CF_Student");
- m.MapLeftKey("UserID");
- m.MapRightKey("RetakePlanID");
- });
- this.HasMany(t => t.ET_StudentDistribute_CF_Student).WithMany(t => t.ET_StudentDistribute_CF_Student)
- .Map(m =>
- {
- m.ToTable("ET_StudentDistribute_CF_Student");
- m.MapLeftKey("UserID");
- m.MapRightKey("StudentDistributeID");
- });
- this.HasMany(t => t.ET_StudentNotDistribute).WithMany(t => t.ET_StudentNotDistribute)
- .Map(m =>
- {
- m.ToTable("ET_StudentNotDistribute");
- m.MapLeftKey("UserID");
- m.MapRightKey("StudentDistributeID");
- });
- this.HasMany(t => t.EX_ExaminationPlan).WithMany(t => t.CF_Student)
- .Map(m =>
- {
- m.ToTable("EX_ExaminationPlan_CF_Student");
- m.MapLeftKey("UserID");
- m.MapRightKey("ExaminationPlanID");
- });
- }
- }
- }
|