| 123456789101112131415161718192021222324252627282930313233 |
- using System.ComponentModel.DataAnnotations.Schema;
- using System.Data.Entity.ModelConfiguration;
- namespace YZXYH.Repository.Models.Mapping
- {
- public class UserLastLoginMap : EntityTypeConfiguration<UserLastLogin>
- {
- public UserLastLoginMap()
- {
- // Primary Key
- this.HasKey(t => t.Id);
- // Properties
- this.Property(t => t.Id)
- .IsRequired()
- .HasMaxLength(50);
- this.Property(t => t.UserNo)
- .IsRequired()
- .HasMaxLength(50);
- this.Property(t => t.IpAddress)
- .HasMaxLength(500);
- // Table & Column Mappings
- this.ToTable("UserLastLogin");
- this.Property(t => t.Id).HasColumnName("Id");
- this.Property(t => t.UserNo).HasColumnName("UserNo");
- this.Property(t => t.TimeLastLogin).HasColumnName("TimeLastLogin");
- this.Property(t => t.IpAddress).HasColumnName("IpAddress");
- }
- }
- }
|