CF_StudentSource_Mapping.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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_StudentSource_Mapping : EntityTypeConfiguration<CF_StudentSource>
  21. {
  22. public CF_StudentSource_Mapping()
  23. {
  24. this.HasKey(t => t.StudentContrastID);
  25. this.ToTable("CF_StudentSource");
  26. this.Property(t => t.StudentContrastID).HasColumnName("StudentContrastID");
  27. this.Property(t => t.ClassmajorID).HasColumnName("ClassmajorID");
  28. this.Property(t => t.SexID).HasColumnName("SexID");
  29. this.Property(t => t.BirthDate).HasColumnName("BirthDate");
  30. this.Property(t => t.NationID).HasColumnName("NationID");
  31. this.Property(t => t.PoliticsID).HasColumnName("PoliticsID");
  32. this.Property(t => t.CertificatesType).HasColumnName("CertificatesType");
  33. this.Property(t => t.IDNumber).HasColumnName("IDNumber").IsUnicode(false).HasMaxLength(20);
  34. this.Property(t => t.StudentType).HasColumnName("StudentType");
  35. this.Property(t => t.InSchoolStatusID).HasColumnName("InSchoolStatusID");
  36. this.Property(t => t.StudentStatus).HasColumnName("StudentStatus");
  37. this.Property(t => t.StudentCardNo).HasColumnName("StudentCardNo").IsUnicode(false).HasMaxLength(50);
  38. this.Property(t => t.PhotoUrl).HasColumnName("PhotoUrl").IsUnicode(false).HasMaxLength(500);
  39. this.Property(t => t.PlanningGraduateDate).HasColumnName("PlanningGraduateDate");
  40. this.Property(t => t.GraduateDate).HasColumnName("GraduateDate");
  41. this.Property(t => t.GraduateCardNo).HasColumnName("GraduateCardNo").IsUnicode(false).HasMaxLength(50);
  42. this.Property(t => t.ReplaceGraduateNo).HasColumnName("ReplaceGraduateNo").IsUnicode(false).HasMaxLength(50);
  43. this.Property(t => t.DegreeStatus).HasColumnName("DegreeStatus");
  44. this.Property(t => t.GraduationPictureUrl).HasColumnName("GraduationPictureUrl").IsUnicode(false).HasMaxLength(500);
  45. this.Property(t => t.Career).HasColumnName("Career");
  46. this.Property(t => t.IsPhotoComparison).HasColumnName("IsPhotoComparison");
  47. this.Property(t => t.IsProofread).HasColumnName("IsProofread");
  48. this.Property(t => t.Remark).HasColumnName("Remark");
  49. this.HasRequired(t => t.CF_StudentContrast).WithOptional(t => t.CF_StudentSource);
  50. }
  51. }
  52. }