MSsavedforeignkeys_Mapping.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 MSsavedforeignkeys_Mapping : EntityTypeConfiguration<MSsavedforeignkeys>
  21. {
  22. public MSsavedforeignkeys_Mapping()
  23. {
  24. this.HasKey(t => new {t.program_name, t.constraint_name, t.parent_schema, t.parent_name, t.referenced_object_schema, t.referenced_object_name, t.is_disabled, t.is_not_for_replication, t.is_not_trusted, t.delete_referential_action, t.update_referential_action, t.timestamp});
  25. this.ToTable("MSsavedforeignkeys", "EMISOnlineContextStoreContainer");
  26. this.Property(t => t.program_name).HasColumnName("program_name").IsRequired().HasMaxLength(128);
  27. this.Property(t => t.constraint_name).HasColumnName("constraint_name").IsRequired().HasMaxLength(128);
  28. this.Property(t => t.parent_schema).HasColumnName("parent_schema").IsRequired().HasMaxLength(128);
  29. this.Property(t => t.parent_name).HasColumnName("parent_name").IsRequired().HasMaxLength(128);
  30. this.Property(t => t.referenced_object_schema).HasColumnName("referenced_object_schema").IsRequired().HasMaxLength(128);
  31. this.Property(t => t.referenced_object_name).HasColumnName("referenced_object_name").IsRequired().HasMaxLength(128);
  32. this.Property(t => t.is_disabled).HasColumnName("is_disabled");
  33. this.Property(t => t.is_not_for_replication).HasColumnName("is_not_for_replication");
  34. this.Property(t => t.is_not_trusted).HasColumnName("is_not_trusted");
  35. this.Property(t => t.delete_referential_action).HasColumnName("delete_referential_action");
  36. this.Property(t => t.update_referential_action).HasColumnName("update_referential_action");
  37. this.Property(t => t.timestamp).HasColumnName("timestamp");
  38. }
  39. }
  40. }