EM_PlanApplication_Mapping.cs 3.5 KB

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