View_UserAttendMeetingInfosMap.cs 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. using System.ComponentModel.DataAnnotations.Schema;
  2. using System.Data.Entity.ModelConfiguration;
  3. namespace YZXYH.Repository.Models.Mapping
  4. {
  5. public class View_UserAttendMeetingInfosMap : EntityTypeConfiguration<View_UserAttendMeetingInfos>
  6. {
  7. public View_UserAttendMeetingInfosMap()
  8. {
  9. // Primary Key
  10. this.HasKey(t => new { t.Id, t.AlumnusNo, t.AMNo, t.IsAudit, t.IsLocked, t.IsCost, t.IsBranch });
  11. // Properties
  12. this.Property(t => t.Id)
  13. .IsRequired()
  14. .HasMaxLength(50);
  15. this.Property(t => t.AlumnusNo)
  16. .IsRequired()
  17. .HasMaxLength(50);
  18. this.Property(t => t.AMNo)
  19. .IsRequired()
  20. .HasMaxLength(50);
  21. this.Property(t => t.IsAudit)
  22. .IsRequired()
  23. .IsFixedLength()
  24. .HasMaxLength(1);
  25. this.Property(t => t.IsLocked)
  26. .IsRequired()
  27. .IsFixedLength()
  28. .HasMaxLength(1);
  29. this.Property(t => t.IsCost)
  30. .IsRequired()
  31. .IsFixedLength()
  32. .HasMaxLength(1);
  33. this.Property(t => t.IsBranch)
  34. .IsRequired()
  35. .IsFixedLength()
  36. .HasMaxLength(1);
  37. this.Property(t => t.IsVip)
  38. .IsFixedLength()
  39. .HasMaxLength(1);
  40. this.Property(t => t.Name)
  41. .HasMaxLength(50);
  42. this.Property(t => t.Mobile)
  43. .HasMaxLength(15);
  44. this.Property(t => t.GraduationYear)
  45. .IsFixedLength()
  46. .HasMaxLength(4);
  47. this.Property(t => t.AMName)
  48. .HasMaxLength(100);
  49. this.Property(t => t.AMYear)
  50. .IsFixedLength()
  51. .HasMaxLength(4);
  52. this.Property(t => t.AMDate)
  53. .HasMaxLength(50);
  54. this.Property(t => t.Stauts)
  55. .IsFixedLength()
  56. .HasMaxLength(1);
  57. this.Property(t => t.CityName)
  58. .HasMaxLength(50);
  59. this.Property(t => t.NickName)
  60. .HasMaxLength(50);
  61. this.Property(t => t.Gender)
  62. .IsFixedLength()
  63. .HasMaxLength(1);
  64. this.Property(t => t.Class)
  65. .HasMaxLength(20);
  66. this.Property(t => t.Email)
  67. .HasMaxLength(50);
  68. this.Property(t => t.CityNo)
  69. .HasMaxLength(50);
  70. this.Property(t => t.WeChat)
  71. .HasMaxLength(50);
  72. this.Property(t => t.QQ)
  73. .HasMaxLength(15);
  74. this.Property(t => t.Mobile2)
  75. .HasMaxLength(15);
  76. this.Property(t => t.IsAudited)
  77. .IsFixedLength()
  78. .HasMaxLength(1);
  79. this.Property(t => t.IsPublic)
  80. .IsFixedLength()
  81. .HasMaxLength(1);
  82. this.Property(t => t.Vip)
  83. .IsFixedLength()
  84. .HasMaxLength(10);
  85. // Table & Column Mappings
  86. this.ToTable("View_UserAttendMeetingInfos");
  87. this.Property(t => t.Id).HasColumnName("Id");
  88. this.Property(t => t.AlumnusNo).HasColumnName("AlumnusNo");
  89. this.Property(t => t.AMNo).HasColumnName("AMNo");
  90. this.Property(t => t.Suggest).HasColumnName("Suggest");
  91. this.Property(t => t.IsAudit).HasColumnName("IsAudit");
  92. this.Property(t => t.IsLocked).HasColumnName("IsLocked");
  93. this.Property(t => t.IsCost).HasColumnName("IsCost");
  94. this.Property(t => t.IsBranch).HasColumnName("IsBranch");
  95. this.Property(t => t.CostTime).HasColumnName("CostTime");
  96. this.Property(t => t.IsVip).HasColumnName("IsVip");
  97. this.Property(t => t.Remark).HasColumnName("Remark");
  98. this.Property(t => t.TimeCreated).HasColumnName("TimeCreated");
  99. this.Property(t => t.TimeModify).HasColumnName("TimeModify");
  100. this.Property(t => t.Name).HasColumnName("Name");
  101. this.Property(t => t.Mobile).HasColumnName("Mobile");
  102. this.Property(t => t.GraduationYear).HasColumnName("GraduationYear");
  103. this.Property(t => t.AMName).HasColumnName("AMName");
  104. this.Property(t => t.AMYear).HasColumnName("AMYear");
  105. this.Property(t => t.AMDate).HasColumnName("AMDate");
  106. this.Property(t => t.Stauts).HasColumnName("Stauts");
  107. this.Property(t => t.TimeEnd).HasColumnName("TimeEnd");
  108. this.Property(t => t.CityName).HasColumnName("CityName");
  109. this.Property(t => t.NickName).HasColumnName("NickName");
  110. this.Property(t => t.Gender).HasColumnName("Gender");
  111. this.Property(t => t.Class).HasColumnName("Class");
  112. this.Property(t => t.Email).HasColumnName("Email");
  113. this.Property(t => t.Birthday).HasColumnName("Birthday");
  114. this.Property(t => t.CityNo).HasColumnName("CityNo");
  115. this.Property(t => t.ContactAddress).HasColumnName("ContactAddress");
  116. this.Property(t => t.HomeAddress).HasColumnName("HomeAddress");
  117. this.Property(t => t.Workunit).HasColumnName("Workunit");
  118. this.Property(t => t.WeChat).HasColumnName("WeChat");
  119. this.Property(t => t.QQ).HasColumnName("QQ");
  120. this.Property(t => t.Mobile2).HasColumnName("Mobile2");
  121. this.Property(t => t.DetaileInfo).HasColumnName("DetaileInfo");
  122. this.Property(t => t.IsAudited).HasColumnName("IsAudited");
  123. this.Property(t => t.IsPublic).HasColumnName("IsPublic");
  124. this.Property(t => t.Vip).HasColumnName("Vip");
  125. }
  126. }
  127. }