//------------------------------------------------------------------------------
// <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_man_Mapping : EntityTypeConfiguration<test_onlinetest_man>
    {
        public test_onlinetest_man_Mapping()
        {					
    		this.HasKey(t => new {t.ID, t.name, t.username, t.filled});		
    		this.ToTable("test_onlinetest_man", "EMISOnlineContextStoreContainer");
    		this.Property(t => t.ID).HasColumnName("ID");
    		this.Property(t => t.onlinetest_id).HasColumnName("onlinetest_id");
    		this.Property(t => t.user_id).HasColumnName("user_id").IsUnicode(false).HasMaxLength(50);
    		this.Property(t => t.OrgId).HasColumnName("OrgId").IsUnicode(false).HasMaxLength(50);
    		this.Property(t => t.name).HasColumnName("name").IsRequired().IsUnicode(false).HasMaxLength(500);
    		this.Property(t => t.username).HasColumnName("username").IsRequired().IsUnicode(false).HasMaxLength(500);
    		this.Property(t => t.sex).HasColumnName("sex").IsUnicode(false).IsFixedLength().HasMaxLength(1);
    		this.Property(t => t.mobile_num).HasColumnName("mobile_num").IsUnicode(false).HasMaxLength(200);
    		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.loginCount).HasColumnName("loginCount");
    		this.Property(t => t.lastLoginTime).HasColumnName("lastLoginTime");
    		this.Property(t => t.beginTime).HasColumnName("beginTime");
    		this.Property(t => t.endTime).HasColumnName("endTime");
    		this.Property(t => t.limited_minutes).HasColumnName("limited_minutes");
    		this.Property(t => t.state).HasColumnName("state");
    		this.Property(t => t.warning_count).HasColumnName("warning_count");
    		this.Property(t => t.lastModified).HasColumnName("lastModified");
    		this.Property(t => t.relogin_count).HasColumnName("relogin_count");
    		this.Property(t => t.time_of_filling).HasColumnName("time_of_filling");
    		this.Property(t => t.filled).HasColumnName("filled");
    	}
    }
}