TP_WorktimeAddition_Mapping.cs 2.9 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 TP_WorktimeAddition_Mapping : EntityTypeConfiguration<TP_WorktimeAddition>
  21. {
  22. public TP_WorktimeAddition_Mapping()
  23. {
  24. this.HasKey(t => t.WorktimeAdditionID);
  25. this.ToTable("TP_WorktimeAddition");
  26. this.Property(t => t.WorktimeAdditionID).HasColumnName("WorktimeAdditionID");
  27. this.Property(t => t.UserID).HasColumnName("UserID");
  28. this.Property(t => t.SchoolyearID).HasColumnName("SchoolyearID");
  29. this.Property(t => t.GrademajorID).HasColumnName("GrademajorID");
  30. this.Property(t => t.CoursematerialID).HasColumnName("CoursematerialID");
  31. this.Property(t => t.CourseCollegeID).HasColumnName("CourseCollegeID");
  32. this.Property(t => t.EducationMissionClassName).HasColumnName("EducationMissionClassName").HasMaxLength(100);
  33. this.Property(t => t.TeachingModeID).HasColumnName("TeachingModeID");
  34. this.Property(t => t.TeachType).HasColumnName("TeachType");
  35. this.Property(t => t.Month).HasColumnName("Month");
  36. this.Property(t => t.StudentCount).HasColumnName("StudentCount");
  37. this.Property(t => t.CourseTime).HasColumnName("CourseTime");
  38. this.Property(t => t.Remark).HasColumnName("Remark");
  39. this.Property(t => t.RecordStatus).HasColumnName("RecordStatus");
  40. this.Property(t => t.CreateUserID).HasColumnName("CreateUserID");
  41. this.Property(t => t.CreateTime).HasColumnName("CreateTime");
  42. this.Property(t => t.ModifyUserID).HasColumnName("ModifyUserID");
  43. this.Property(t => t.ModifyTime).HasColumnName("ModifyTime");
  44. this.HasOptional(t => t.CF_College).WithMany(t => t.TP_WorktimeAddition).HasForeignKey(d => d.CourseCollegeID);
  45. this.HasOptional(t => t.CF_Grademajor).WithMany(t => t.TP_WorktimeAddition).HasForeignKey(d => d.GrademajorID);
  46. this.HasOptional(t => t.CF_Schoolyear).WithMany(t => t.TP_WorktimeAddition).HasForeignKey(d => d.SchoolyearID);
  47. this.HasOptional(t => t.CF_Staff).WithMany(t => t.TP_WorktimeAddition).HasForeignKey(d => d.UserID);
  48. this.HasOptional(t => t.EM_Coursematerial).WithMany(t => t.TP_WorktimeAddition).HasForeignKey(d => d.CoursematerialID);
  49. }
  50. }
  51. }