CF_StudentProfile_Mapping.cs 2.8 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_StudentProfile_Mapping : EntityTypeConfiguration<CF_StudentProfile>
  21. {
  22. public CF_StudentProfile_Mapping()
  23. {
  24. this.HasKey(t => t.UserID);
  25. this.ToTable("CF_StudentProfile");
  26. this.Property(t => t.UserID).HasColumnName("UserID");
  27. this.Property(t => t.UsedName).HasColumnName("UsedName").HasMaxLength(200);
  28. this.Property(t => t.DirectorName).HasColumnName("DirectorName").HasMaxLength(200);
  29. this.Property(t => t.BirthDate).HasColumnName("BirthDate");
  30. this.Property(t => t.Country).HasColumnName("Country").HasMaxLength(500);
  31. this.Property(t => t.Politics).HasColumnName("Politics");
  32. this.Property(t => t.LiteracyLevels).HasColumnName("LiteracyLevels");
  33. this.Property(t => t.Nation).HasColumnName("Nation");
  34. this.Property(t => t.Place).HasColumnName("Place").IsUnicode(false).HasMaxLength(200);
  35. this.Property(t => t.Healthy).HasColumnName("Healthy");
  36. this.Property(t => t.BloodGroup).HasColumnName("BloodGroup");
  37. this.Property(t => t.BornPlace).HasColumnName("BornPlace").HasMaxLength(50);
  38. this.Property(t => t.Specialty).HasColumnName("Specialty").IsUnicode(false).HasMaxLength(200);
  39. this.Property(t => t.Height).HasColumnName("Height").IsUnicode(false).HasMaxLength(200);
  40. this.Property(t => t.Weight).HasColumnName("Weight").IsUnicode(false).HasMaxLength(200);
  41. this.Property(t => t.Remarks).HasColumnName("Remarks").IsUnicode(false);
  42. this.Property(t => t.GraduationPictureUrl).HasColumnName("GraduationPictureUrl").IsUnicode(false).HasMaxLength(500);
  43. this.Property(t => t.RecordStatus).HasColumnName("RecordStatus");
  44. this.Property(t => t.CreateTime).HasColumnName("CreateTime");
  45. this.Property(t => t.CreateUserID).HasColumnName("CreateUserID");
  46. this.Property(t => t.ModifyUserID).HasColumnName("ModifyUserID");
  47. this.Property(t => t.ModifyTime).HasColumnName("ModifyTime");
  48. this.HasRequired(t => t.CF_Student).WithOptional(t => t.CF_StudentProfile);
  49. }
  50. }
  51. }