| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.ModelConfiguration;
- namespace YZXYH.Repository.Models.Mapping
- {
- public class ViewUserIndustryBranchInfoMap : EntityTypeConfiguration<ViewUserIndustryBranchInfo>
- {
- public ViewUserIndustryBranchInfoMap()
- {
- // Primary Key
- this.HasKey(t => new { t.IndustryBranchNo, t.IsLocked, t.Id, t.UserNo });
- // Properties
- this.Property(t => t.Mobile)
- .HasMaxLength(15);
- this.Property(t => t.Name)
- .HasMaxLength(50);
- this.Property(t => t.NickName)
- .HasMaxLength(50);
- this.Property(t => t.Gender)
- .IsFixedLength()
- .HasMaxLength(1);
- this.Property(t => t.Email)
- .HasMaxLength(50);
- this.Property(t => t.CityNo)
- .HasMaxLength(50);
- this.Property(t => t.GraduationYear)
- .IsFixedLength()
- .HasMaxLength(4);
- this.Property(t => t.WeChat)
- .HasMaxLength(50);
- this.Property(t => t.QQ)
- .HasMaxLength(15);
- this.Property(t => t.Mobile2)
- .HasMaxLength(15);
- this.Property(t => t.IsAudited)
- .IsFixedLength()
- .HasMaxLength(1);
- this.Property(t => t.IsPublic)
- .IsFixedLength()
- .HasMaxLength(1);
- this.Property(t => t.Vip)
- .IsFixedLength()
- .HasMaxLength(10);
- this.Property(t => t.Remark)
- .HasMaxLength(250);
- this.Property(t => t.IndustryBranchNo)
- .IsRequired()
- .HasMaxLength(50);
- this.Property(t => t.UserRole)
- .HasMaxLength(50);
- this.Property(t => t.Duty)
- .HasMaxLength(50);
- this.Property(t => t.IsActive)
- .IsFixedLength()
- .HasMaxLength(1);
- this.Property(t => t.IsMember)
- .IsFixedLength()
- .HasMaxLength(1);
- this.Property(t => t.IndustryBranchName)
- .HasMaxLength(50);
- this.Property(t => t.IsLocked)
- .IsRequired()
- .IsFixedLength()
- .HasMaxLength(1);
- this.Property(t => t.Id)
- .IsRequired()
- .HasMaxLength(50);
- this.Property(t => t.UserNo)
- .IsRequired()
- .HasMaxLength(50);
- // Table & Column Mappings
- this.ToTable("ViewUserIndustryBranchInfos");
- this.Property(t => t.Mobile).HasColumnName("Mobile");
- this.Property(t => t.Name).HasColumnName("Name");
- this.Property(t => t.NickName).HasColumnName("NickName");
- this.Property(t => t.Gender).HasColumnName("Gender");
- this.Property(t => t.Email).HasColumnName("Email");
- this.Property(t => t.Birthday).HasColumnName("Birthday");
- this.Property(t => t.CityNo).HasColumnName("CityNo");
- this.Property(t => t.GraduationYear).HasColumnName("GraduationYear");
- this.Property(t => t.ContactAddress).HasColumnName("ContactAddress");
- this.Property(t => t.HomeAddress).HasColumnName("HomeAddress");
- this.Property(t => t.Workunit).HasColumnName("Workunit");
- this.Property(t => t.WeChat).HasColumnName("WeChat");
- this.Property(t => t.QQ).HasColumnName("QQ");
- this.Property(t => t.Mobile2).HasColumnName("Mobile2");
- this.Property(t => t.DetaileInfo).HasColumnName("DetaileInfo");
- this.Property(t => t.IsAudited).HasColumnName("IsAudited");
- this.Property(t => t.IsPublic).HasColumnName("IsPublic");
- this.Property(t => t.Vip).HasColumnName("Vip");
- this.Property(t => t.TimeCreate).HasColumnName("TimeCreate");
- this.Property(t => t.TimeModify).HasColumnName("TimeModify");
- this.Property(t => t.Remark).HasColumnName("Remark");
- this.Property(t => t.IndustryBranchNo).HasColumnName("IndustryBranchNo");
- this.Property(t => t.UserRole).HasColumnName("UserRole");
- this.Property(t => t.Duty).HasColumnName("Duty");
- this.Property(t => t.IsActive).HasColumnName("IsActive");
- this.Property(t => t.IsMember).HasColumnName("IsMember");
- this.Property(t => t.IndustryBranchName).HasColumnName("IndustryBranchName");
- this.Property(t => t.IsLocked).HasColumnName("IsLocked");
- this.Property(t => t.Id).HasColumnName("Id");
- this.Property(t => t.UserNo).HasColumnName("UserNo");
- }
- }
- }
|