Base.Context.cs 6.8 KB

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