Comm_Users_Mapping.cs 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated from a template.
  4. //
  5. // Manual changes to this file may cause unexpected behavior in your application.
  6. // Manual changes to this file will be overwritten if the code is regenerated.
  7. // </auto-generated>
  8. //------------------------------------------------------------------------------
  9. namespace EMIS.Entities.HRServices
  10. {
  11. #pragma warning disable 1573
  12. using System;
  13. using System.Collections.Generic;
  14. using System.ComponentModel.DataAnnotations;
  15. using System.Data.Common;
  16. using System.Data.Entity;
  17. using System.Data.Entity.ModelConfiguration;
  18. using System.Data.Entity.Infrastructure;
  19. using System.ComponentModel.DataAnnotations.Schema;
  20. internal partial class Comm_Users_Mapping : EntityTypeConfiguration<Comm_Users>
  21. {
  22. public Comm_Users_Mapping()
  23. {
  24. this.HasKey(t => t.userid);
  25. this.ToTable("Comm_Users");
  26. this.Property(t => t.userid).HasColumnName("userid").IsRequired().HasMaxLength(55);
  27. this.Property(t => t.loginid).HasColumnName("loginid").HasMaxLength(55);
  28. this.Property(t => t.username).HasColumnName("username").HasMaxLength(55);
  29. this.Property(t => t.dpid).HasColumnName("dpid").HasMaxLength(55);
  30. this.Property(t => t.telephone).HasColumnName("telephone").HasMaxLength(55);
  31. this.Property(t => t.mobile).HasColumnName("mobile").HasMaxLength(55);
  32. this.Property(t => t.email).HasColumnName("email").HasMaxLength(55);
  33. this.Property(t => t.cardid).HasColumnName("cardid").HasMaxLength(55);
  34. this.Property(t => t.employeeclassid).HasColumnName("employeeclassid").HasMaxLength(55);
  35. this.Property(t => t.jobtypeid).HasColumnName("jobtypeid").HasMaxLength(55);
  36. this.Property(t => t.birthday).HasColumnName("birthday");
  37. this.Property(t => t.sex).HasColumnName("sex").IsUnicode(false).IsFixedLength().HasMaxLength(1);
  38. this.Property(t => t.orderNo).HasColumnName("orderNo").HasMaxLength(55);
  39. this.Property(t => t.userrole).HasColumnName("userrole").HasMaxLength(55);
  40. this.Property(t => t.userligion).HasColumnName("userligion").HasMaxLength(55);
  41. this.Property(t => t.password).HasColumnName("password").HasMaxLength(55);
  42. this.Property(t => t.changepwddate).HasColumnName("changepwddate");
  43. this.Property(t => t.isshow).HasColumnName("isshow");
  44. this.Property(t => t.status).HasColumnName("status").IsUnicode(false).IsFixedLength().HasMaxLength(1);
  45. this.Property(t => t.createdt).HasColumnName("createdt");
  46. this.Property(t => t.updatedt).HasColumnName("updatedt");
  47. this.Property(t => t.istmpuser).HasColumnName("istmpuser");
  48. this.Property(t => t.SpecialLicensed).HasColumnName("SpecialLicensed");
  49. this.HasOptional(t => t.Comm_OrgInfo).WithMany(t => t.Comm_Users).HasForeignKey(d => d.dpid);
  50. }
  51. }
  52. }