CF_Student_Mapping.cs 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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_Student_Mapping : EntityTypeConfiguration<CF_Student>
  21. {
  22. public CF_Student_Mapping()
  23. {
  24. this.HasKey(t => t.UserID);
  25. this.ToTable("CF_Student");
  26. this.Property(t => t.UserID).HasColumnName("UserID");
  27. this.Property(t => t.ClassmajorID).HasColumnName("ClassmajorID");
  28. this.Property(t => t.Sex).HasColumnName("Sex");
  29. this.Property(t => t.CertificatesType).HasColumnName("CertificatesType");
  30. this.Property(t => t.IDNumber).HasColumnName("IDNumber").IsUnicode(false).HasMaxLength(20);
  31. this.Property(t => t.StudentType).HasColumnName("StudentType");
  32. this.Property(t => t.InSchoolStatusID).HasColumnName("InSchoolStatusID");
  33. this.Property(t => t.StudentStatus).HasColumnName("StudentStatus");
  34. this.Property(t => t.CultureModel).HasColumnName("CultureModel");
  35. this.Property(t => t.IsProofread).HasColumnName("IsProofread");
  36. this.Property(t => t.IsDreamProject).HasColumnName("IsDreamProject");
  37. this.Property(t => t.StudentCardNo).HasColumnName("StudentCardNo").IsUnicode(false).HasMaxLength(50);
  38. this.Property(t => t.PlanningGraduateDate).HasColumnName("PlanningGraduateDate");
  39. this.Property(t => t.GraduateDate).HasColumnName("GraduateDate");
  40. this.Property(t => t.GraduateCardNo).HasColumnName("GraduateCardNo").IsUnicode(false).HasMaxLength(50);
  41. this.Property(t => t.ReplaceGraduateNo).HasColumnName("ReplaceGraduateNo").IsUnicode(false).HasMaxLength(50);
  42. this.Property(t => t.DegreeStatus).HasColumnName("DegreeStatus");
  43. this.Property(t => t.PhotoUrl).HasColumnName("PhotoUrl").IsUnicode(false).HasMaxLength(500);
  44. this.Property(t => t.Career).HasColumnName("Career");
  45. this.Property(t => t.RecordStatus).HasColumnName("RecordStatus");
  46. this.Property(t => t.CreateUserID).HasColumnName("CreateUserID");
  47. this.Property(t => t.CreateTime).HasColumnName("CreateTime");
  48. this.Property(t => t.ModifyUserID).HasColumnName("ModifyUserID");
  49. this.Property(t => t.ModifyTime).HasColumnName("ModifyTime");
  50. this.HasOptional(t => t.CF_Classmajor).WithMany(t => t.CF_Student).HasForeignKey(d => d.ClassmajorID);
  51. this.HasRequired(t => t.Sys_User).WithOptional(t => t.CF_Student);
  52. }
  53. }
  54. }