12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- //------------------------------------------------------------------------------
- // <auto-generated>
- // 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.
- // </auto-generated>
- //------------------------------------------------------------------------------
- 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_onlinetest_Mapping : EntityTypeConfiguration<test_onlinetest>
- {
- public test_onlinetest_Mapping()
- {
- this.HasKey(t => t.onlinetest_id);
- this.ToTable("test_onlinetest");
- this.Property(t => t.onlinetest_id).HasColumnName("onlinetest_id").HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
- this.Property(t => t.test_paper_id).HasColumnName("test_paper_id");
- this.Property(t => t.test_name).HasColumnName("test_name").IsUnicode(false).HasMaxLength(500);
- this.Property(t => t.test_begin_date).HasColumnName("test_begin_date");
- this.Property(t => t.test_end_date).HasColumnName("test_end_date");
- this.Property(t => t.limited_minutes).HasColumnName("limited_minutes");
- this.Property(t => t.test_address).HasColumnName("test_address").IsUnicode(false).HasMaxLength(200);
- this.Property(t => t.breaking_id).HasColumnName("breaking_id");
- this.Property(t => t.test_method_set_id).HasColumnName("test_method_set_id");
- this.Property(t => t.notice_method_id).HasColumnName("notice_method_id").IsUnicode(false).HasMaxLength(300);
- this.Property(t => t.status_id).HasColumnName("status_id");
- this.Property(t => t.test_code).HasColumnName("test_code").IsUnicode(false).HasMaxLength(300);
- 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.subjectiveQAutoRead).HasColumnName("subjectiveQAutoRead");
- this.Property(t => t.ModityContent).HasColumnName("ModityContent").HasMaxLength(300);
- this.Property(t => t.ISautoBegin).HasColumnName("ISautoBegin");
- this.Property(t => t.isOpenAnswer).HasColumnName("isOpenAnswer");
- this.Property(t => t.rand_Test_time).HasColumnName("rand_Test_time");
- this.Property(t => t.rand_test_count).HasColumnName("rand_test_count");
- this.Property(t => t.rand_test_point_type).HasColumnName("rand_test_point_type");
- this.Property(t => t.rand_test_point_setid).HasColumnName("rand_test_point_setid");
- this.Property(t => t.display_type).HasColumnName("display_type");
- this.Property(t => t.isPublishScore).HasColumnName("isPublishScore");
- this.Property(t => t.isControllable).HasColumnName("isControllable");
- this.Property(t => t.notice_datetime).HasColumnName("notice_datetime");
- this.Property(t => t.relogin_count).HasColumnName("relogin_count");
- this.Property(t => t.filled).HasColumnName("filled");
- this.Property(t => t.time_of_filling).HasColumnName("time_of_filling");
- this.Property(t => t.version).HasColumnName("version").HasDatabaseGeneratedOption(DatabaseGeneratedOption.Computed).IsFixedLength().HasMaxLength(8);
- this.Property(t => t.ExamID).HasColumnName("ExamID");
- this.Property(t => t.SubCode).HasColumnName("SubCode").IsUnicode(false).HasMaxLength(50);
- this.Property(t => t.PassRate).HasColumnName("PassRate");
- this.Property(t => t.ExamerState).HasColumnName("ExamerState");
- this.Property(t => t.isReadPaper).HasColumnName("isReadPaper");
- this.Property(t => t.EducationMissionClassID).HasColumnName("EducationMissionClassID");
- this.HasOptional(t => t.test_paper).WithMany(t => t.test_onlinetest).HasForeignKey(d => d.test_paper_id);
- }
- }
- }
|