//------------------------------------------------------------------------------
//
// 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 v_test_question_Mapping : EntityTypeConfiguration
{
public v_test_question_Mapping()
{
this.HasKey(t => new {t.test_question_Id, t.filled});
this.ToTable("v_test_question", "EMISOnlineContextStoreContainer");
this.Property(t => t.rid).HasColumnName("rid");
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.question_type_name).HasColumnName("question_type_name").IsUnicode(false).HasMaxLength(300);
this.Property(t => t.questione_lib_name).HasColumnName("questione_lib_name").IsUnicode(false).HasMaxLength(300);
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.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.is_vaild).HasColumnName("is_vaild");
this.Property(t => t.created_date).HasColumnName("created_date");
this.Property(t => t.wrong_count).HasColumnName("wrong_count");
this.Property(t => t.score).HasColumnName("score");
this.Property(t => t.filled).HasColumnName("filled");
this.Property(t => t.time_of_filling).HasColumnName("time_of_filling");
this.Property(t => t.created_by).HasColumnName("created_by").IsUnicode(false).HasMaxLength(50);
this.Property(t => t.wrong_percent).HasColumnName("wrong_percent");
}
}
}