test_onlinetest_Mapping.cs 4.1 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 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 test_onlinetest_Mapping : EntityTypeConfiguration<test_onlinetest>
  21. {
  22. public test_onlinetest_Mapping()
  23. {
  24. this.HasKey(t => t.onlinetest_id);
  25. this.ToTable("test_onlinetest");
  26. this.Property(t => t.onlinetest_id).HasColumnName("onlinetest_id").HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
  27. this.Property(t => t.test_paper_id).HasColumnName("test_paper_id");
  28. this.Property(t => t.test_name).HasColumnName("test_name").IsUnicode(false).HasMaxLength(500);
  29. this.Property(t => t.test_begin_date).HasColumnName("test_begin_date");
  30. this.Property(t => t.test_end_date).HasColumnName("test_end_date");
  31. this.Property(t => t.limited_minutes).HasColumnName("limited_minutes");
  32. this.Property(t => t.test_address).HasColumnName("test_address").IsUnicode(false).HasMaxLength(200);
  33. this.Property(t => t.breaking_id).HasColumnName("breaking_id");
  34. this.Property(t => t.test_method_set_id).HasColumnName("test_method_set_id");
  35. this.Property(t => t.notice_method_id).HasColumnName("notice_method_id").IsUnicode(false).HasMaxLength(300);
  36. this.Property(t => t.status_id).HasColumnName("status_id");
  37. this.Property(t => t.test_code).HasColumnName("test_code").IsUnicode(false).HasMaxLength(300);
  38. this.Property(t => t.created_by).HasColumnName("created_by").IsUnicode(false).HasMaxLength(50);
  39. this.Property(t => t.created_date).HasColumnName("created_date");
  40. this.Property(t => t.subjectiveQAutoRead).HasColumnName("subjectiveQAutoRead");
  41. this.Property(t => t.ModityContent).HasColumnName("ModityContent").HasMaxLength(300);
  42. this.Property(t => t.ISautoBegin).HasColumnName("ISautoBegin");
  43. this.Property(t => t.isOpenAnswer).HasColumnName("isOpenAnswer");
  44. this.Property(t => t.rand_Test_time).HasColumnName("rand_Test_time");
  45. this.Property(t => t.rand_test_count).HasColumnName("rand_test_count");
  46. this.Property(t => t.rand_test_point_type).HasColumnName("rand_test_point_type");
  47. this.Property(t => t.rand_test_point_setid).HasColumnName("rand_test_point_setid");
  48. this.Property(t => t.display_type).HasColumnName("display_type");
  49. this.Property(t => t.isPublishScore).HasColumnName("isPublishScore");
  50. this.Property(t => t.isControllable).HasColumnName("isControllable");
  51. this.Property(t => t.notice_datetime).HasColumnName("notice_datetime");
  52. this.Property(t => t.relogin_count).HasColumnName("relogin_count");
  53. this.Property(t => t.filled).HasColumnName("filled");
  54. this.Property(t => t.time_of_filling).HasColumnName("time_of_filling");
  55. this.Property(t => t.version).HasColumnName("version").HasDatabaseGeneratedOption(DatabaseGeneratedOption.Computed).IsFixedLength().HasMaxLength(8);
  56. this.Property(t => t.ExamID).HasColumnName("ExamID");
  57. this.Property(t => t.SubCode).HasColumnName("SubCode").IsUnicode(false).HasMaxLength(50);
  58. this.Property(t => t.PassRate).HasColumnName("PassRate");
  59. this.Property(t => t.ExamerState).HasColumnName("ExamerState");
  60. this.Property(t => t.isReadPaper).HasColumnName("isReadPaper");
  61. this.Property(t => t.EducationMissionClassID).HasColumnName("EducationMissionClassID");
  62. this.HasOptional(t => t.test_paper).WithMany(t => t.test_onlinetest).HasForeignKey(d => d.test_paper_id);
  63. }
  64. }
  65. }