CF_StaffProfile_Mapping.cs 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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
  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 CF_StaffProfile_Mapping : EntityTypeConfiguration<CF_StaffProfile>
  21. {
  22. public CF_StaffProfile_Mapping()
  23. {
  24. this.HasKey(t => t.UserID);
  25. this.ToTable("CF_StaffProfile");
  26. this.Property(t => t.UserID).HasColumnName("UserID");
  27. this.Property(t => t.UsedName).HasColumnName("UsedName").IsUnicode(false).HasMaxLength(20);
  28. this.Property(t => t.Nation).HasColumnName("Nation");
  29. this.Property(t => t.Place).HasColumnName("Place").HasMaxLength(20);
  30. this.Property(t => t.EducationCode).HasColumnName("EducationCode");
  31. this.Property(t => t.Telephone).HasColumnName("Telephone").HasMaxLength(50);
  32. this.Property(t => t.OfficeTelephone).HasColumnName("OfficeTelephone").HasMaxLength(50);
  33. this.Property(t => t.Mobile).HasColumnName("Mobile").HasMaxLength(50);
  34. this.Property(t => t.Email).HasColumnName("Email").HasMaxLength(50);
  35. this.Property(t => t.QQ).HasColumnName("QQ").IsUnicode(false).HasMaxLength(20);
  36. this.Property(t => t.Nationality).HasColumnName("Nationality").IsUnicode(false).HasMaxLength(20);
  37. this.Property(t => t.HealthState).HasColumnName("HealthState");
  38. this.Property(t => t.HousePhone).HasColumnName("HousePhone").IsUnicode(false).HasMaxLength(20);
  39. this.Property(t => t.Address).HasColumnName("Address").IsUnicode(false).HasMaxLength(50);
  40. this.Property(t => t.Postcode).HasColumnName("Postcode").IsUnicode(false).HasMaxLength(10);
  41. this.Property(t => t.HomeAddress).HasColumnName("HomeAddress").IsUnicode(false).HasMaxLength(50);
  42. this.Property(t => t.NowAddress).HasColumnName("NowAddress").IsUnicode(false).HasMaxLength(50);
  43. this.Property(t => t.Residence).HasColumnName("Residence").IsUnicode(false).HasMaxLength(50);
  44. this.Property(t => t.Speciality).HasColumnName("Speciality").IsUnicode(false).HasMaxLength(500);
  45. this.Property(t => t.WeChatNum).HasColumnName("WeChatNum").IsUnicode(false).HasMaxLength(50);
  46. this.Property(t => t.Religion).HasColumnName("Religion");
  47. this.Property(t => t.Account).HasColumnName("Account").IsUnicode(false).HasMaxLength(50);
  48. this.HasRequired(t => t.CF_Staff).WithOptional(t => t.CF_StaffProfile);
  49. }
  50. }
  51. }