Model1.Context.cs 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код был создан из шаблона.
  4. //
  5. // Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
  6. // Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
  7. // </auto-generated>
  8. //------------------------------------------------------------------------------
  9. namespace Бархатные_бровки_Gebel
  10. {
  11. using System;
  12. using System.Data.Entity;
  13. using System.Data.Entity.Infrastructure;
  14. using System.Data.Objects;
  15. using System.Data.Objects.DataClasses;
  16. using System.Linq;
  17. public partial class BB_GebelEntities : DbContext
  18. {
  19. public BB_GebelEntities()
  20. : base("name=BB_GebelEntities")
  21. {
  22. }
  23. protected override void OnModelCreating(DbModelBuilder modelBuilder)
  24. {
  25. throw new UnintentionalCodeFirstException();
  26. }
  27. public DbSet<AttachedProduct> AttachedProduct { get; set; }
  28. public DbSet<client> client { get; set; }
  29. public DbSet<client_Service_> client_Service_ { get; set; }
  30. public DbSet<DocumentService> DocumentService { get; set; }
  31. public DbSet<Gender> Gender { get; set; }
  32. public DbSet<Manufacture> Manufacture { get; set; }
  33. public DbSet<Photo_prouct> Photo_prouct { get; set; }
  34. public DbSet<Product> Product { get; set; }
  35. public DbSet<Sale> Sale { get; set; }
  36. public DbSet<service> service { get; set; }
  37. public DbSet<Service_photo> Service_photo { get; set; }
  38. public DbSet<sysdiagrams> sysdiagrams { get; set; }
  39. public DbSet<Tag> Tag { get; set; }
  40. public DbSet<Tag_client> Tag_client { get; set; }
  41. public DbSet<Avtorizacia> Avtorizacia { get; set; }
  42. public virtual int sp_alterdiagram(string diagramname, Nullable<int> owner_id, Nullable<int> version, byte[] definition)
  43. {
  44. var diagramnameParameter = diagramname != null ?
  45. new ObjectParameter("diagramname", diagramname) :
  46. new ObjectParameter("diagramname", typeof(string));
  47. var owner_idParameter = owner_id.HasValue ?
  48. new ObjectParameter("owner_id", owner_id) :
  49. new ObjectParameter("owner_id", typeof(int));
  50. var versionParameter = version.HasValue ?
  51. new ObjectParameter("version", version) :
  52. new ObjectParameter("version", typeof(int));
  53. var definitionParameter = definition != null ?
  54. new ObjectParameter("definition", definition) :
  55. new ObjectParameter("definition", typeof(byte[]));
  56. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_alterdiagram", diagramnameParameter, owner_idParameter, versionParameter, definitionParameter);
  57. }
  58. public virtual int sp_creatediagram(string diagramname, Nullable<int> owner_id, Nullable<int> version, byte[] definition)
  59. {
  60. var diagramnameParameter = diagramname != null ?
  61. new ObjectParameter("diagramname", diagramname) :
  62. new ObjectParameter("diagramname", typeof(string));
  63. var owner_idParameter = owner_id.HasValue ?
  64. new ObjectParameter("owner_id", owner_id) :
  65. new ObjectParameter("owner_id", typeof(int));
  66. var versionParameter = version.HasValue ?
  67. new ObjectParameter("version", version) :
  68. new ObjectParameter("version", typeof(int));
  69. var definitionParameter = definition != null ?
  70. new ObjectParameter("definition", definition) :
  71. new ObjectParameter("definition", typeof(byte[]));
  72. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_creatediagram", diagramnameParameter, owner_idParameter, versionParameter, definitionParameter);
  73. }
  74. public virtual int sp_dropdiagram(string diagramname, Nullable<int> owner_id)
  75. {
  76. var diagramnameParameter = diagramname != null ?
  77. new ObjectParameter("diagramname", diagramname) :
  78. new ObjectParameter("diagramname", typeof(string));
  79. var owner_idParameter = owner_id.HasValue ?
  80. new ObjectParameter("owner_id", owner_id) :
  81. new ObjectParameter("owner_id", typeof(int));
  82. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_dropdiagram", diagramnameParameter, owner_idParameter);
  83. }
  84. public virtual ObjectResult<sp_helpdiagramdefinition_Result> sp_helpdiagramdefinition(string diagramname, Nullable<int> owner_id)
  85. {
  86. var diagramnameParameter = diagramname != null ?
  87. new ObjectParameter("diagramname", diagramname) :
  88. new ObjectParameter("diagramname", typeof(string));
  89. var owner_idParameter = owner_id.HasValue ?
  90. new ObjectParameter("owner_id", owner_id) :
  91. new ObjectParameter("owner_id", typeof(int));
  92. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<sp_helpdiagramdefinition_Result>("sp_helpdiagramdefinition", diagramnameParameter, owner_idParameter);
  93. }
  94. public virtual ObjectResult<sp_helpdiagrams_Result> sp_helpdiagrams(string diagramname, Nullable<int> owner_id)
  95. {
  96. var diagramnameParameter = diagramname != null ?
  97. new ObjectParameter("diagramname", diagramname) :
  98. new ObjectParameter("diagramname", typeof(string));
  99. var owner_idParameter = owner_id.HasValue ?
  100. new ObjectParameter("owner_id", owner_id) :
  101. new ObjectParameter("owner_id", typeof(int));
  102. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<sp_helpdiagrams_Result>("sp_helpdiagrams", diagramnameParameter, owner_idParameter);
  103. }
  104. public virtual int sp_renamediagram(string diagramname, Nullable<int> owner_id, string new_diagramname)
  105. {
  106. var diagramnameParameter = diagramname != null ?
  107. new ObjectParameter("diagramname", diagramname) :
  108. new ObjectParameter("diagramname", typeof(string));
  109. var owner_idParameter = owner_id.HasValue ?
  110. new ObjectParameter("owner_id", owner_id) :
  111. new ObjectParameter("owner_id", typeof(int));
  112. var new_diagramnameParameter = new_diagramname != null ?
  113. new ObjectParameter("new_diagramname", new_diagramname) :
  114. new ObjectParameter("new_diagramname", typeof(string));
  115. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_renamediagram", diagramnameParameter, owner_idParameter, new_diagramnameParameter);
  116. }
  117. public virtual int sp_upgraddiagrams()
  118. {
  119. return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_upgraddiagrams");
  120. }
  121. }
  122. }