using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.ModelConfiguration; namespace YZXYH.Repository.Models.Mapping { public class View_UserAttendMeetingInfosMap : EntityTypeConfiguration { public View_UserAttendMeetingInfosMap() { // Primary Key this.HasKey(t => new { t.Id, t.AlumnusNo, t.AMNo, t.IsAudit, t.IsLocked, t.IsCost, t.IsBranch }); // Properties this.Property(t => t.Id) .IsRequired() .HasMaxLength(50); this.Property(t => t.AlumnusNo) .IsRequired() .HasMaxLength(50); this.Property(t => t.AMNo) .IsRequired() .HasMaxLength(50); this.Property(t => t.IsAudit) .IsRequired() .IsFixedLength() .HasMaxLength(1); this.Property(t => t.IsLocked) .IsRequired() .IsFixedLength() .HasMaxLength(1); this.Property(t => t.IsCost) .IsRequired() .IsFixedLength() .HasMaxLength(1); this.Property(t => t.IsBranch) .IsRequired() .IsFixedLength() .HasMaxLength(1); this.Property(t => t.IsVip) .IsFixedLength() .HasMaxLength(1); this.Property(t => t.Name) .HasMaxLength(50); this.Property(t => t.Mobile) .HasMaxLength(15); this.Property(t => t.GraduationYear) .IsFixedLength() .HasMaxLength(4); this.Property(t => t.AMName) .HasMaxLength(100); this.Property(t => t.AMYear) .IsFixedLength() .HasMaxLength(4); this.Property(t => t.AMDate) .HasMaxLength(50); this.Property(t => t.Stauts) .IsFixedLength() .HasMaxLength(1); this.Property(t => t.CityName) .HasMaxLength(50); this.Property(t => t.NickName) .HasMaxLength(50); this.Property(t => t.Gender) .IsFixedLength() .HasMaxLength(1); this.Property(t => t.Class) .HasMaxLength(20); this.Property(t => t.Email) .HasMaxLength(50); this.Property(t => t.CityNo) .HasMaxLength(50); 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); // Table & Column Mappings this.ToTable("View_UserAttendMeetingInfos"); this.Property(t => t.Id).HasColumnName("Id"); this.Property(t => t.AlumnusNo).HasColumnName("AlumnusNo"); this.Property(t => t.AMNo).HasColumnName("AMNo"); this.Property(t => t.Suggest).HasColumnName("Suggest"); this.Property(t => t.IsAudit).HasColumnName("IsAudit"); this.Property(t => t.IsLocked).HasColumnName("IsLocked"); this.Property(t => t.IsCost).HasColumnName("IsCost"); this.Property(t => t.IsBranch).HasColumnName("IsBranch"); this.Property(t => t.CostTime).HasColumnName("CostTime"); this.Property(t => t.IsVip).HasColumnName("IsVip"); this.Property(t => t.Remark).HasColumnName("Remark"); this.Property(t => t.TimeCreated).HasColumnName("TimeCreated"); this.Property(t => t.TimeModify).HasColumnName("TimeModify"); this.Property(t => t.Name).HasColumnName("Name"); this.Property(t => t.Mobile).HasColumnName("Mobile"); this.Property(t => t.GraduationYear).HasColumnName("GraduationYear"); this.Property(t => t.AMName).HasColumnName("AMName"); this.Property(t => t.AMYear).HasColumnName("AMYear"); this.Property(t => t.AMDate).HasColumnName("AMDate"); this.Property(t => t.Stauts).HasColumnName("Stauts"); this.Property(t => t.TimeEnd).HasColumnName("TimeEnd"); this.Property(t => t.CityName).HasColumnName("CityName"); this.Property(t => t.NickName).HasColumnName("NickName"); this.Property(t => t.Gender).HasColumnName("Gender"); this.Property(t => t.Class).HasColumnName("Class"); 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.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"); } } }