EM_SpecialtyPlan_Mapping.cs 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 EM_SpecialtyPlan_Mapping : EntityTypeConfiguration<EM_SpecialtyPlan>
  21. {
  22. public EM_SpecialtyPlan_Mapping()
  23. {
  24. this.HasKey(t => t.SpecialtyPlanID);
  25. this.ToTable("EM_SpecialtyPlan");
  26. this.Property(t => t.SpecialtyPlanID).HasColumnName("SpecialtyPlanID");
  27. this.Property(t => t.PlanApplicationID).HasColumnName("PlanApplicationID");
  28. this.Property(t => t.SchoolyearID).HasColumnName("SchoolyearID");
  29. this.Property(t => t.StartSchoolyearID).HasColumnName("StartSchoolyearID");
  30. this.Property(t => t.SpecialtyID).HasColumnName("SpecialtyID");
  31. this.Property(t => t.GrademajorID).HasColumnName("GrademajorID");
  32. this.Property(t => t.CoursematerialID).HasColumnName("CoursematerialID");
  33. this.Property(t => t.CourseStructureID).HasColumnName("CourseStructureID");
  34. this.Property(t => t.CourseCategoryID).HasColumnName("CourseCategoryID");
  35. this.Property(t => t.CourseTypeID).HasColumnName("CourseTypeID");
  36. this.Property(t => t.CourseQualityID).HasColumnName("CourseQualityID");
  37. this.Property(t => t.DepartmentID).HasColumnName("DepartmentID");
  38. this.Property(t => t.IsSpecialtycore).HasColumnName("IsSpecialtycore");
  39. this.Property(t => t.IsCooperation).HasColumnName("IsCooperation");
  40. this.Property(t => t.IsRequired).HasColumnName("IsRequired");
  41. this.Property(t => t.IsElective).HasColumnName("IsElective");
  42. this.Property(t => t.IsNetworkCourse).HasColumnName("IsNetworkCourse");
  43. this.Property(t => t.IsMainCourse).HasColumnName("IsMainCourse");
  44. this.Property(t => t.IsNeedMaterial).HasColumnName("IsNeedMaterial");
  45. this.Property(t => t.CourseFineID).HasColumnName("CourseFineID");
  46. this.Property(t => t.PracticeTypeID).HasColumnName("PracticeTypeID");
  47. this.Property(t => t.TeachinglanguageID).HasColumnName("TeachinglanguageID");
  48. this.Property(t => t.ExaminationModeID).HasColumnName("ExaminationModeID");
  49. this.Property(t => t.ResultTypeID).HasColumnName("ResultTypeID");
  50. this.Property(t => t.HandleModeID).HasColumnName("HandleModeID");
  51. this.Property(t => t.Remark).HasColumnName("Remark");
  52. this.Property(t => t.RecordStatus).HasColumnName("RecordStatus");
  53. this.Property(t => t.CreateUserID).HasColumnName("CreateUserID");
  54. this.Property(t => t.CreateTime).HasColumnName("CreateTime");
  55. this.Property(t => t.ModifyUserID).HasColumnName("ModifyUserID");
  56. this.Property(t => t.ModifyTime).HasColumnName("ModifyTime");
  57. this.HasOptional(t => t.CF_Department).WithMany(t => t.EM_SpecialtyPlan).HasForeignKey(d => d.DepartmentID);
  58. this.HasOptional(t => t.CF_Grademajor).WithMany(t => t.EM_SpecialtyPlan).HasForeignKey(d => d.GrademajorID);
  59. this.HasOptional(t => t.CF_Schoolyear).WithMany(t => t.EM_SpecialtyPlan).HasForeignKey(d => d.SchoolyearID);
  60. this.HasOptional(t => t.CF_Specialty).WithMany(t => t.EM_SpecialtyPlan).HasForeignKey(d => d.SpecialtyID);
  61. this.HasOptional(t => t.EM_Coursematerial).WithMany(t => t.EM_SpecialtyPlan).HasForeignKey(d => d.CoursematerialID);
  62. this.HasOptional(t => t.EM_PlanApplication).WithMany(t => t.EM_SpecialtyPlan).HasForeignKey(d => d.PlanApplicationID);
  63. }
  64. }
  65. }