//------------------------------------------------------------------------------ // // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated. // //------------------------------------------------------------------------------ namespace EMIS.Entities.HRServices { #pragma warning disable 1573 using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Data.Common; using System.Data.Entity; using System.Data.Entity.ModelConfiguration; using System.Data.Entity.Infrastructure; using System.ComponentModel.DataAnnotations.Schema; internal partial class Comm_Users_Mapping : EntityTypeConfiguration { public Comm_Users_Mapping() { this.HasKey(t => t.userid); this.ToTable("Comm_Users"); this.Property(t => t.userid).HasColumnName("userid").IsRequired().HasMaxLength(55); this.Property(t => t.loginid).HasColumnName("loginid").HasMaxLength(55); this.Property(t => t.username).HasColumnName("username").HasMaxLength(55); this.Property(t => t.dpid).HasColumnName("dpid").HasMaxLength(55); this.Property(t => t.telephone).HasColumnName("telephone").HasMaxLength(55); this.Property(t => t.mobile).HasColumnName("mobile").HasMaxLength(55); this.Property(t => t.email).HasColumnName("email").HasMaxLength(55); this.Property(t => t.cardid).HasColumnName("cardid").HasMaxLength(55); this.Property(t => t.employeeclassid).HasColumnName("employeeclassid").HasMaxLength(55); this.Property(t => t.jobtypeid).HasColumnName("jobtypeid").HasMaxLength(55); this.Property(t => t.birthday).HasColumnName("birthday"); this.Property(t => t.sex).HasColumnName("sex").IsUnicode(false).IsFixedLength().HasMaxLength(1); this.Property(t => t.orderNo).HasColumnName("orderNo").HasMaxLength(55); this.Property(t => t.userrole).HasColumnName("userrole").HasMaxLength(55); this.Property(t => t.userligion).HasColumnName("userligion").HasMaxLength(55); this.Property(t => t.password).HasColumnName("password").HasMaxLength(55); this.Property(t => t.changepwddate).HasColumnName("changepwddate"); this.Property(t => t.isshow).HasColumnName("isshow"); this.Property(t => t.status).HasColumnName("status").IsUnicode(false).IsFixedLength().HasMaxLength(1); this.Property(t => t.createdt).HasColumnName("createdt"); this.Property(t => t.updatedt).HasColumnName("updatedt"); this.Property(t => t.istmpuser).HasColumnName("istmpuser"); this.Property(t => t.SpecialLicensed).HasColumnName("SpecialLicensed"); this.HasOptional(t => t.Comm_OrgInfo).WithMany(t => t.Comm_Users).HasForeignKey(d => d.dpid); } } }