123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //------------------------------------------------------------------------------
- // <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 Coursework_Mapping : EntityTypeConfiguration<Coursework>
- {
- public Coursework_Mapping()
- {
- this.HasKey(t => t.ID);
- this.ToTable("Coursework");
- this.Property(t => t.ID).HasColumnName("ID").HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
- this.Property(t => t.PaperID).HasColumnName("PaperID");
- this.Property(t => t.WorkName).HasColumnName("WorkName").IsUnicode(false).HasMaxLength(300);
- this.Property(t => t.BeginTime).HasColumnName("BeginTime");
- this.Property(t => t.EndTime).HasColumnName("EndTime");
- 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.created_by).HasColumnName("created_by").IsUnicode(false).HasMaxLength(40);
- this.Property(t => t.created_date).HasColumnName("created_date").IsUnicode(false).HasMaxLength(49);
- 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.relogin_count).HasColumnName("relogin_count");
- this.Property(t => t.EducationMissionClassID).HasColumnName("EducationMissionClassID");
- this.Property(t => t.ModityContent).HasColumnName("ModityContent").IsUnicode(false);
- this.HasOptional(t => t.test_paper).WithMany(t => t.Coursework).HasForeignKey(d => d.PaperID);
- }
- }
- }
|