CF_UniversityProfile_Mapping.cs 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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_UniversityProfile_Mapping : EntityTypeConfiguration<CF_UniversityProfile>
  21. {
  22. public CF_UniversityProfile_Mapping()
  23. {
  24. this.HasKey(t => t.UniversityID);
  25. this.ToTable("CF_UniversityProfile");
  26. this.Property(t => t.UniversityID).HasColumnName("UniversityID");
  27. this.Property(t => t.ProvinceID).HasColumnName("ProvinceID");
  28. this.Property(t => t.CityID).HasColumnName("CityID");
  29. this.Property(t => t.DistrictID).HasColumnName("DistrictID");
  30. this.Property(t => t.PropertyID).HasColumnName("PropertyID");
  31. this.Property(t => t.SchoolTypeID).HasColumnName("SchoolTypeID");
  32. this.Property(t => t.ManagerID).HasColumnName("ManagerID");
  33. this.Property(t => t.FounderTypeID).HasColumnName("FounderTypeID");
  34. this.Property(t => t.SchoolLevelID).HasColumnName("SchoolLevelID");
  35. this.Property(t => t.HeadMasterName).HasColumnName("HeadMasterName").HasMaxLength(20);
  36. this.Property(t => t.PartyManageID).HasColumnName("PartyManageID");
  37. this.Property(t => t.LegalPersonName).HasColumnName("LegalPersonName").HasMaxLength(50);
  38. this.Property(t => t.BuildDate).HasColumnName("BuildDate");
  39. this.Property(t => t.AnniversaryDate).HasColumnName("AnniversaryDate");
  40. this.Property(t => t.SchoolBasis).HasColumnName("SchoolBasis").HasMaxLength(100);
  41. this.Property(t => t.SchoolMotto).HasColumnName("SchoolMotto").HasMaxLength(100);
  42. this.Property(t => t.SubjectCount).HasColumnName("SubjectCount");
  43. this.Property(t => t.Is211University).HasColumnName("Is211University");
  44. this.Property(t => t.IsKeyUniversity).HasColumnName("IsKeyUniversity");
  45. this.Property(t => t.IsAdultCollege).HasColumnName("IsAdultCollege");
  46. this.Property(t => t.IsPostCollege).HasColumnName("IsPostCollege");
  47. this.Property(t => t.IsNetCollege).HasColumnName("IsNetCollege");
  48. this.Property(t => t.Telephone).HasColumnName("Telephone").IsUnicode(false).HasMaxLength(20);
  49. this.Property(t => t.ZIPCode).HasColumnName("ZIPCode").IsUnicode(false).HasMaxLength(10);
  50. this.Property(t => t.Email).HasColumnName("Email").IsUnicode(false).HasMaxLength(50);
  51. this.Property(t => t.FAX).HasColumnName("FAX").IsUnicode(false).HasMaxLength(20);
  52. this.Property(t => t.PublicNum).HasColumnName("PublicNum").HasMaxLength(50);
  53. this.Property(t => t.HomePage).HasColumnName("HomePage").IsUnicode(false).HasMaxLength(500);
  54. this.Property(t => t.Address).HasColumnName("Address").HasMaxLength(500);
  55. this.Property(t => t.EnglishAddress).HasColumnName("EnglishAddress").HasMaxLength(500);
  56. this.Property(t => t.HistoryEvolution).HasColumnName("HistoryEvolution");
  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.HasRequired(t => t.CF_University).WithOptional(t => t.CF_UniversityProfile);
  63. }
  64. }
  65. }