//------------------------------------------------------------------------------
//
// 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 MSsubscription_agents_Mapping : EntityTypeConfiguration
{
public MSsubscription_agents_Mapping()
{
this.HasKey(t => new {t.id, t.publisher, t.publisher_db, t.publication, t.subscription_type, t.update_mode, t.failover_mode, t.spid, t.login_time, t.allow_subscription_copy, t.attach_state, t.attach_version});
this.ToTable("MSsubscription_agents", "EMISOnlineContextStoreContainer");
this.Property(t => t.id).HasColumnName("id").HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
this.Property(t => t.publisher).HasColumnName("publisher").IsRequired().HasMaxLength(128);
this.Property(t => t.publisher_db).HasColumnName("publisher_db").IsRequired().HasMaxLength(128);
this.Property(t => t.publication).HasColumnName("publication").IsRequired().HasMaxLength(128);
this.Property(t => t.subscription_type).HasColumnName("subscription_type").HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);
this.Property(t => t.queue_id).HasColumnName("queue_id").HasMaxLength(128);
this.Property(t => t.update_mode).HasColumnName("update_mode");
this.Property(t => t.failover_mode).HasColumnName("failover_mode");
this.Property(t => t.spid).HasColumnName("spid").HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);
this.Property(t => t.login_time).HasColumnName("login_time");
this.Property(t => t.allow_subscription_copy).HasColumnName("allow_subscription_copy");
this.Property(t => t.attach_state).HasColumnName("attach_state").HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);
this.Property(t => t.attach_version).HasColumnName("attach_version").IsRequired().IsFixedLength().HasMaxLength(16);
this.Property(t => t.last_sync_status).HasColumnName("last_sync_status");
this.Property(t => t.last_sync_summary).HasColumnName("last_sync_summary").HasMaxLength(128);
this.Property(t => t.last_sync_time).HasColumnName("last_sync_time");
this.Property(t => t.queue_server).HasColumnName("queue_server").HasMaxLength(128);
}
}
}