test_question_Mapping.cs 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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_question_Mapping : EntityTypeConfiguration<test_question>
  21. {
  22. public test_question_Mapping()
  23. {
  24. this.HasKey(t => t.test_question_Id);
  25. this.ToTable("test_question");
  26. this.Property(t => t.test_question_Id).HasColumnName("test_question_Id").HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
  27. this.Property(t => t.base_question_type_id).HasColumnName("base_question_type_id");
  28. this.Property(t => t.content).HasColumnName("content");
  29. this.Property(t => t.question_file_id).HasColumnName("question_file_id");
  30. this.Property(t => t.knowledge_type_id).HasColumnName("knowledge_type_id");
  31. this.Property(t => t.knowledge_point_id).HasColumnName("knowledge_point_id");
  32. this.Property(t => t.difficulty_degree).HasColumnName("difficulty_degree");
  33. this.Property(t => t.answers).HasColumnName("answers").IsUnicode(false).HasMaxLength(3000);
  34. this.Property(t => t.is_order).HasColumnName("is_order");
  35. this.Property(t => t.answers_note).HasColumnName("answers_note").IsUnicode(false).HasMaxLength(300);
  36. this.Property(t => t.note).HasColumnName("note").IsUnicode(false).HasMaxLength(300);
  37. this.Property(t => t.KeyWordIsAnd).HasColumnName("KeyWordIsAnd");
  38. this.Property(t => t.test_question_libary_id).HasColumnName("test_question_libary_id");
  39. this.Property(t => t.used_count).HasColumnName("used_count");
  40. this.Property(t => t.right_percent).HasColumnName("right_percent");
  41. this.Property(t => t.wrong_count).HasColumnName("wrong_count");
  42. this.Property(t => t.is_vaild).HasColumnName("is_vaild");
  43. this.Property(t => t.created_by).HasColumnName("created_by").IsUnicode(false).HasMaxLength(50);
  44. this.Property(t => t.created_date).HasColumnName("created_date");
  45. this.Property(t => t.score).HasColumnName("score");
  46. this.Property(t => t.wrong_percent).HasColumnName("wrong_percent").HasDatabaseGeneratedOption(DatabaseGeneratedOption.Computed);
  47. this.Property(t => t.filled).HasColumnName("filled");
  48. this.Property(t => t.time_of_filling).HasColumnName("time_of_filling");
  49. this.Property(t => t.test_question_ParentId).HasColumnName("test_question_ParentId");
  50. this.HasOptional(t => t.test_base_question_type).WithMany(t => t.test_question).HasForeignKey(d => d.base_question_type_id);
  51. this.HasOptional(t => t.test_question_file).WithMany(t => t.test_question).HasForeignKey(d => d.question_file_id);
  52. }
  53. }
  54. }