//------------------------------------------------------------------------------ // // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated. // //------------------------------------------------------------------------------ namespace EMISOnline.Entities { #pragma warning disable 1573 using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Data.Common; using System.Data.Entity; using System.Data.Entity.ModelConfiguration; using System.Data.Entity.Infrastructure; using System.ComponentModel.DataAnnotations.Schema; internal partial class test_question_Mapping : EntityTypeConfiguration { public test_question_Mapping() { this.HasKey(t => t.test_question_Id); this.ToTable("test_question"); this.Property(t => t.test_question_Id).HasColumnName("test_question_Id").HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity); this.Property(t => t.base_question_type_id).HasColumnName("base_question_type_id"); this.Property(t => t.content).HasColumnName("content"); this.Property(t => t.question_file_id).HasColumnName("question_file_id"); this.Property(t => t.knowledge_type_id).HasColumnName("knowledge_type_id"); this.Property(t => t.knowledge_point_id).HasColumnName("knowledge_point_id"); this.Property(t => t.difficulty_degree).HasColumnName("difficulty_degree"); this.Property(t => t.answers).HasColumnName("answers").IsUnicode(false).HasMaxLength(3000); this.Property(t => t.is_order).HasColumnName("is_order"); this.Property(t => t.answers_note).HasColumnName("answers_note").IsUnicode(false).HasMaxLength(300); this.Property(t => t.note).HasColumnName("note").IsUnicode(false).HasMaxLength(300); this.Property(t => t.KeyWordIsAnd).HasColumnName("KeyWordIsAnd"); this.Property(t => t.test_question_libary_id).HasColumnName("test_question_libary_id"); this.Property(t => t.used_count).HasColumnName("used_count"); this.Property(t => t.right_percent).HasColumnName("right_percent"); this.Property(t => t.wrong_count).HasColumnName("wrong_count"); this.Property(t => t.is_vaild).HasColumnName("is_vaild"); this.Property(t => t.created_by).HasColumnName("created_by").IsUnicode(false).HasMaxLength(50); this.Property(t => t.created_date).HasColumnName("created_date"); this.Property(t => t.score).HasColumnName("score"); this.Property(t => t.wrong_percent).HasColumnName("wrong_percent").HasDatabaseGeneratedOption(DatabaseGeneratedOption.Computed); this.Property(t => t.filled).HasColumnName("filled"); this.Property(t => t.time_of_filling).HasColumnName("time_of_filling"); this.Property(t => t.test_question_ParentId).HasColumnName("test_question_ParentId"); this.HasOptional(t => t.test_base_question_type).WithMany(t => t.test_question).HasForeignKey(d => d.base_question_type_id); this.HasOptional(t => t.test_question_file).WithMany(t => t.test_question).HasForeignKey(d => d.question_file_id); } } }