MSreplication_subscriptions_Mapping.cs 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 MSreplication_subscriptions_Mapping : EntityTypeConfiguration<MSreplication_subscriptions>
  21. {
  22. public MSreplication_subscriptions_Mapping()
  23. {
  24. this.HasKey(t => new {t.publisher, t.independent_agent, t.subscription_type, t.time, t.transaction_timestamp, t.update_mode, t.immediate_sync});
  25. this.ToTable("MSreplication_subscriptions", "EMISOnlineContextStoreContainer");
  26. this.Property(t => t.publisher).HasColumnName("publisher").IsRequired().HasMaxLength(128);
  27. this.Property(t => t.publisher_db).HasColumnName("publisher_db").HasMaxLength(128);
  28. this.Property(t => t.publication).HasColumnName("publication").HasMaxLength(128);
  29. this.Property(t => t.independent_agent).HasColumnName("independent_agent");
  30. this.Property(t => t.subscription_type).HasColumnName("subscription_type").HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);
  31. this.Property(t => t.distribution_agent).HasColumnName("distribution_agent").HasMaxLength(128);
  32. this.Property(t => t.time).HasColumnName("time");
  33. this.Property(t => t.description).HasColumnName("description").HasMaxLength(255);
  34. this.Property(t => t.transaction_timestamp).HasColumnName("transaction_timestamp").IsRequired().HasMaxLength(16);
  35. this.Property(t => t.update_mode).HasColumnName("update_mode");
  36. this.Property(t => t.agent_id).HasColumnName("agent_id").IsFixedLength().HasMaxLength(16);
  37. this.Property(t => t.subscription_guid).HasColumnName("subscription_guid").IsFixedLength().HasMaxLength(16);
  38. this.Property(t => t.subid).HasColumnName("subid").IsFixedLength().HasMaxLength(16);
  39. this.Property(t => t.immediate_sync).HasColumnName("immediate_sync");
  40. }
  41. }
  42. }