Coursework_Mapping.cs 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 EMISOnline.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 Coursework_Mapping : EntityTypeConfiguration<Coursework>
  21. {
  22. public Coursework_Mapping()
  23. {
  24. this.HasKey(t => t.ID);
  25. this.ToTable("Coursework");
  26. this.Property(t => t.ID).HasColumnName("ID").HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
  27. this.Property(t => t.PaperID).HasColumnName("PaperID");
  28. this.Property(t => t.WorkName).HasColumnName("WorkName").IsUnicode(false).HasMaxLength(300);
  29. this.Property(t => t.BeginTime).HasColumnName("BeginTime");
  30. this.Property(t => t.EndTime).HasColumnName("EndTime");
  31. this.Property(t => t.breaking_id).HasColumnName("breaking_id");
  32. this.Property(t => t.test_method_set_id).HasColumnName("test_method_set_id");
  33. this.Property(t => t.notice_method_id).HasColumnName("notice_method_id").IsUnicode(false).HasMaxLength(300);
  34. this.Property(t => t.status_id).HasColumnName("status_id");
  35. this.Property(t => t.created_by).HasColumnName("created_by").IsUnicode(false).HasMaxLength(40);
  36. this.Property(t => t.created_date).HasColumnName("created_date").IsUnicode(false).HasMaxLength(49);
  37. this.Property(t => t.ISautoBegin).HasColumnName("ISautoBegin");
  38. this.Property(t => t.isOpenAnswer).HasColumnName("isOpenAnswer");
  39. this.Property(t => t.rand_Test_time).HasColumnName("rand_Test_time");
  40. this.Property(t => t.rand_test_count).HasColumnName("rand_test_count");
  41. this.Property(t => t.rand_test_point_type).HasColumnName("rand_test_point_type");
  42. this.Property(t => t.rand_test_point_setid).HasColumnName("rand_test_point_setid");
  43. this.Property(t => t.display_type).HasColumnName("display_type");
  44. this.Property(t => t.isPublishScore).HasColumnName("isPublishScore");
  45. this.Property(t => t.isControllable).HasColumnName("isControllable");
  46. this.Property(t => t.relogin_count).HasColumnName("relogin_count");
  47. this.Property(t => t.EducationMissionClassID).HasColumnName("EducationMissionClassID");
  48. this.Property(t => t.ModityContent).HasColumnName("ModityContent").IsUnicode(false);
  49. this.HasOptional(t => t.test_paper).WithMany(t => t.Coursework).HasForeignKey(d => d.PaperID);
  50. }
  51. }
  52. }