CF_DifferentDynamic_Mapping.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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_DifferentDynamic_Mapping : EntityTypeConfiguration<CF_DifferentDynamic>
  21. {
  22. public CF_DifferentDynamic_Mapping()
  23. {
  24. this.HasKey(t => t.StudentChangeID);
  25. this.ToTable("CF_DifferentDynamic");
  26. this.Property(t => t.StudentChangeID).HasColumnName("StudentChangeID");
  27. this.Property(t => t.UserID).HasColumnName("UserID");
  28. this.Property(t => t.SchoolyearID).HasColumnName("SchoolyearID");
  29. this.Property(t => t.ChangeTypeID).HasColumnName("ChangeTypeID");
  30. this.Property(t => t.BeforeClassmajorID).HasColumnName("BeforeClassmajorID");
  31. this.Property(t => t.BeforeInSchoolStatusID).HasColumnName("BeforeInSchoolStatusID");
  32. this.Property(t => t.BeforeStudentStatus).HasColumnName("BeforeStudentStatus");
  33. this.Property(t => t.AfterClassmajorID).HasColumnName("AfterClassmajorID");
  34. this.Property(t => t.AfterInSchoolStatusID).HasColumnName("AfterInSchoolStatusID");
  35. this.Property(t => t.AfterStudentStatus).HasColumnName("AfterStudentStatus");
  36. this.Property(t => t.ReturnSchoolyearID).HasColumnName("ReturnSchoolyearID");
  37. this.Property(t => t.ChangeApplyTypeID).HasColumnName("ChangeApplyTypeID");
  38. this.Property(t => t.ChangeReasonID).HasColumnName("ChangeReasonID");
  39. this.Property(t => t.ChangeDate).HasColumnName("ChangeDate");
  40. this.Property(t => t.Description).HasColumnName("Description");
  41. this.Property(t => t.ApprovalStatus).HasColumnName("ApprovalStatus");
  42. this.Property(t => t.Remark).HasColumnName("Remark");
  43. this.Property(t => t.RecordStatus).HasColumnName("RecordStatus");
  44. this.Property(t => t.CreateUserID).HasColumnName("CreateUserID");
  45. this.Property(t => t.CreateTime).HasColumnName("CreateTime");
  46. this.Property(t => t.ModifyUserID).HasColumnName("ModifyUserID");
  47. this.Property(t => t.ModifyTime).HasColumnName("ModifyTime");
  48. this.HasOptional(t => t.BeforeClassmajorID_Nav).WithMany(t => t.CF_DifferentDynamic_BeforeClassmajorID).HasForeignKey(d => d.BeforeClassmajorID);
  49. this.HasOptional(t => t.AfterClassmajorID_Nav).WithMany(t => t.CF_DifferentDynamic_AfterClassmajorID).HasForeignKey(d => d.AfterClassmajorID);
  50. this.HasOptional(t => t.SchoolyearID_Nav).WithMany(t => t.CF_DifferentDynamic_SchoolyearID).HasForeignKey(d => d.SchoolyearID);
  51. this.HasOptional(t => t.ReturnSchoolyearID_Nav).WithMany(t => t.CF_DifferentDynamic_ReturnSchoolyearID).HasForeignKey(d => d.ReturnSchoolyearID);
  52. this.HasOptional(t => t.CF_Student).WithMany(t => t.CF_DifferentDynamic).HasForeignKey(d => d.UserID);
  53. }
  54. }
  55. }