| 12345678910111213141516171819202122232425262728293031323334 |
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.ModelConfiguration;
- namespace YZXYH.Repository.Models.Mapping
- {
- public class View_SysUserLastLoginTimeMap : EntityTypeConfiguration<View_SysUserLastLoginTime>
- {
- public View_SysUserLastLoginTimeMap()
- {
- // Primary Key
- this.HasKey(t => new { t.UserNo, t.SysName, t.SysNo });
- // Properties
- this.Property(t => t.UserNo)
- .IsRequired()
- .HasMaxLength(50);
- this.Property(t => t.SysName)
- .IsRequired()
- .HasMaxLength(50);
- this.Property(t => t.SysNo)
- .IsRequired()
- .HasMaxLength(50);
- // Table & Column Mappings
- this.ToTable("View_SysUserLastLoginTime");
- this.Property(t => t.UserNo).HasColumnName("UserNo");
- this.Property(t => t.TimeLastLogin).HasColumnName("TimeLastLogin");
- this.Property(t => t.SysName).HasColumnName("SysName");
- this.Property(t => t.SysNo).HasColumnName("SysNo");
- }
- }
- }
|