MSsubscription_agents_Mapping.cs 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated from a template.
  4. //
  5. // Manual changes to this file may cause unexpected behavior in your application.
  6. // Manual changes to this file will be overwritten if the code is regenerated.
  7. // </auto-generated>
  8. //------------------------------------------------------------------------------
  9. namespace EMISOnline.Entities
  10. {
  11. #pragma warning disable 1573
  12. using System;
  13. using System.Collections.Generic;
  14. using System.ComponentModel.DataAnnotations;
  15. using System.Data.Common;
  16. using System.Data.Entity;
  17. using System.Data.Entity.ModelConfiguration;
  18. using System.Data.Entity.Infrastructure;
  19. using System.ComponentModel.DataAnnotations.Schema;
  20. internal partial class MSsubscription_agents_Mapping : EntityTypeConfiguration<MSsubscription_agents>
  21. {
  22. public MSsubscription_agents_Mapping()
  23. {
  24. 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});
  25. this.ToTable("MSsubscription_agents", "EMISOnlineContextStoreContainer");
  26. this.Property(t => t.id).HasColumnName("id").HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);
  27. this.Property(t => t.publisher).HasColumnName("publisher").IsRequired().HasMaxLength(128);
  28. this.Property(t => t.publisher_db).HasColumnName("publisher_db").IsRequired().HasMaxLength(128);
  29. this.Property(t => t.publication).HasColumnName("publication").IsRequired().HasMaxLength(128);
  30. this.Property(t => t.subscription_type).HasColumnName("subscription_type").HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);
  31. this.Property(t => t.queue_id).HasColumnName("queue_id").HasMaxLength(128);
  32. this.Property(t => t.update_mode).HasColumnName("update_mode");
  33. this.Property(t => t.failover_mode).HasColumnName("failover_mode");
  34. this.Property(t => t.spid).HasColumnName("spid").HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);
  35. this.Property(t => t.login_time).HasColumnName("login_time");
  36. this.Property(t => t.allow_subscription_copy).HasColumnName("allow_subscription_copy");
  37. this.Property(t => t.attach_state).HasColumnName("attach_state").HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);
  38. this.Property(t => t.attach_version).HasColumnName("attach_version").IsRequired().IsFixedLength().HasMaxLength(16);
  39. this.Property(t => t.last_sync_status).HasColumnName("last_sync_status");
  40. this.Property(t => t.last_sync_summary).HasColumnName("last_sync_summary").HasMaxLength(128);
  41. this.Property(t => t.last_sync_time).HasColumnName("last_sync_time");
  42. this.Property(t => t.queue_server).HasColumnName("queue_server").HasMaxLength(128);
  43. }
  44. }
  45. }