CF_NewStudent_Mapping.cs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated from a template.
  4. //
  5. // Manual changes to this file may cause unexpected behavior in your application.
  6. // Manual changes to this file will be overwritten if the code is regenerated.
  7. // </auto-generated>
  8. //------------------------------------------------------------------------------
  9. namespace EMIS.Entities
  10. {
  11. #pragma warning disable 1573
  12. using System;
  13. using System.Collections.Generic;
  14. using System.ComponentModel.DataAnnotations;
  15. using System.Data.Common;
  16. using System.Data.Entity;
  17. using System.Data.Entity.ModelConfiguration;
  18. using System.Data.Entity.Infrastructure;
  19. using System.ComponentModel.DataAnnotations.Schema;
  20. internal partial class CF_NewStudent_Mapping : EntityTypeConfiguration<CF_NewStudent>
  21. {
  22. public CF_NewStudent_Mapping()
  23. {
  24. this.HasKey(t => t.NewStudentID);
  25. this.ToTable("CF_NewStudent");
  26. this.Property(t => t.NewStudentID).HasColumnName("NewStudentID");
  27. this.Property(t => t.ExamineeNum).HasColumnName("ExamineeNum").IsUnicode(false).HasMaxLength(50);
  28. this.Property(t => t.AdmissionTicketNo).HasColumnName("AdmissionTicketNo").IsUnicode(false).HasMaxLength(50);
  29. this.Property(t => t.Name).HasColumnName("Name").HasMaxLength(50);
  30. this.Property(t => t.SexID).HasColumnName("SexID");
  31. this.Property(t => t.NationID).HasColumnName("NationID");
  32. this.Property(t => t.PoliticsID).HasColumnName("PoliticsID");
  33. this.Property(t => t.BirthDate).HasColumnName("BirthDate");
  34. this.Property(t => t.CertificatesType).HasColumnName("CertificatesType");
  35. this.Property(t => t.IDNumber).HasColumnName("IDNumber").IsUnicode(false).HasMaxLength(20);
  36. this.Property(t => t.GradeID).HasColumnName("GradeID");
  37. this.Property(t => t.SemesterID).HasColumnName("SemesterID");
  38. this.Property(t => t.SpecialtyID).HasColumnName("SpecialtyID");
  39. this.Property(t => t.EntranceDate).HasColumnName("EntranceDate");
  40. this.Property(t => t.Score).HasColumnName("Score");
  41. this.Property(t => t.Telephone).HasColumnName("Telephone").IsUnicode(false).HasMaxLength(50);
  42. this.Property(t => t.ZIPCode).HasColumnName("ZIPCode").HasMaxLength(20);
  43. this.Property(t => t.EntranceWayID).HasColumnName("EntranceWayID");
  44. this.Property(t => t.FeaturesID).HasColumnName("FeaturesID");
  45. this.Property(t => t.TerritorialID).HasColumnName("TerritorialID");
  46. this.Property(t => t.Address).HasColumnName("Address").HasMaxLength(200);
  47. this.Property(t => t.Dormitory).HasColumnName("Dormitory").HasMaxLength(100);
  48. this.Property(t => t.EnrollmentNo).HasColumnName("EnrollmentNo").IsUnicode(false).HasMaxLength(50);
  49. this.Property(t => t.RecruitPictureUrl).HasColumnName("RecruitPictureUrl").IsUnicode(false).HasMaxLength(500);
  50. this.Property(t => t.IsDoubt).HasColumnName("IsDoubt");
  51. this.Property(t => t.AssignStatus).HasColumnName("AssignStatus");
  52. this.Property(t => t.OrderNo).HasColumnName("OrderNo");
  53. this.Property(t => t.CollegeID).HasColumnName("CollegeID");
  54. this.Property(t => t.ClassmajorID).HasColumnName("ClassmajorID");
  55. this.Property(t => t.StudentNo).HasColumnName("StudentNo").IsUnicode(false).HasMaxLength(50);
  56. this.Property(t => t.Remark).HasColumnName("Remark");
  57. this.Property(t => t.RecordStatus).HasColumnName("RecordStatus");
  58. this.Property(t => t.CreateUserID).HasColumnName("CreateUserID");
  59. this.Property(t => t.CreateTime).HasColumnName("CreateTime");
  60. this.Property(t => t.ModifyUserID).HasColumnName("ModifyUserID");
  61. this.Property(t => t.ModifyTime).HasColumnName("ModifyTime");
  62. this.HasOptional(t => t.CF_Classmajor).WithMany(t => t.CF_NewStudent).HasForeignKey(d => d.ClassmajorID);
  63. this.HasOptional(t => t.CF_College).WithMany(t => t.CF_NewStudent).HasForeignKey(d => d.CollegeID);
  64. this.HasOptional(t => t.CF_Specialty).WithMany(t => t.CF_NewStudent).HasForeignKey(d => d.SpecialtyID);
  65. }
  66. }
  67. }