CF_StudentContrast_Mapping.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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_StudentContrast_Mapping : EntityTypeConfiguration<CF_StudentContrast>
  21. {
  22. public CF_StudentContrast_Mapping()
  23. {
  24. this.HasKey(t => t.StudentContrastID);
  25. this.ToTable("CF_StudentContrast");
  26. this.Property(t => t.StudentContrastID).HasColumnName("StudentContrastID");
  27. this.Property(t => t.UserID).HasColumnName("UserID");
  28. this.Property(t => t.ClassmajorID).HasColumnName("ClassmajorID");
  29. this.Property(t => t.SexID).HasColumnName("SexID");
  30. this.Property(t => t.BirthDate).HasColumnName("BirthDate");
  31. this.Property(t => t.NationID).HasColumnName("NationID");
  32. this.Property(t => t.PoliticsID).HasColumnName("PoliticsID");
  33. this.Property(t => t.CertificatesType).HasColumnName("CertificatesType");
  34. this.Property(t => t.IDNumber).HasColumnName("IDNumber").IsUnicode(false).HasMaxLength(20);
  35. this.Property(t => t.StudentType).HasColumnName("StudentType");
  36. this.Property(t => t.InSchoolStatusID).HasColumnName("InSchoolStatusID");
  37. this.Property(t => t.StudentStatus).HasColumnName("StudentStatus");
  38. this.Property(t => t.StudentCardNo).HasColumnName("StudentCardNo").IsUnicode(false).HasMaxLength(50);
  39. this.Property(t => t.PhotoUrl).HasColumnName("PhotoUrl").IsUnicode(false).HasMaxLength(500);
  40. this.Property(t => t.PlanningGraduateDate).HasColumnName("PlanningGraduateDate");
  41. this.Property(t => t.GraduateDate).HasColumnName("GraduateDate");
  42. this.Property(t => t.GraduateCardNo).HasColumnName("GraduateCardNo").IsUnicode(false).HasMaxLength(50);
  43. this.Property(t => t.ReplaceGraduateNo).HasColumnName("ReplaceGraduateNo").IsUnicode(false).HasMaxLength(50);
  44. this.Property(t => t.DegreeStatus).HasColumnName("DegreeStatus");
  45. this.Property(t => t.GraduationPictureUrl).HasColumnName("GraduationPictureUrl").IsUnicode(false).HasMaxLength(500);
  46. this.Property(t => t.Career).HasColumnName("Career");
  47. this.Property(t => t.IsPhotoComparison).HasColumnName("IsPhotoComparison");
  48. this.Property(t => t.IsProofread).HasColumnName("IsProofread");
  49. this.Property(t => t.Remark).HasColumnName("Remark");
  50. this.Property(t => t.IP).HasColumnName("IP").IsUnicode(false).HasMaxLength(50);
  51. this.Property(t => t.ApprovalStatus).HasColumnName("ApprovalStatus");
  52. this.Property(t => t.Comment).HasColumnName("Comment");
  53. this.Property(t => t.RecordStatus).HasColumnName("RecordStatus");
  54. this.Property(t => t.CreateUserID).HasColumnName("CreateUserID");
  55. this.Property(t => t.CreateTime).HasColumnName("CreateTime");
  56. this.Property(t => t.ModifyUserID).HasColumnName("ModifyUserID");
  57. this.Property(t => t.ModifyTime).HasColumnName("ModifyTime");
  58. this.HasRequired(t => t.Sys_User).WithMany(t => t.CF_StudentContrast).HasForeignKey(d => d.UserID);
  59. }
  60. }
  61. }