| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.ModelConfiguration;
- namespace YZXYH.Repository.Models.Mapping
- {
- public class AttendMeetMap : EntityTypeConfiguration<AttendMeet>
- {
- public AttendMeetMap()
- {
- // Primary Key
- this.HasKey(t => t.Id);
- // 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);
- // Table & Column Mappings
- this.ToTable("AttendMeets");
- 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");
- }
- }
- }
|