123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- //------------------------------------------------------------------------------
- // <auto-generated>
- // Этот код создан по шаблону.
- //
- // Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
- // Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
- // </auto-generated>
- //------------------------------------------------------------------------------
- namespace Books_Shop_Kopey.Model
- {
- using System;
- using System.Data.Entity;
- using System.Data.Entity.Infrastructure;
- using System.Data.Entity.Core.Objects;
- using System.Linq;
-
- public partial class Books_Shop_KopeykinEntities : DbContext
- {
- public Books_Shop_KopeykinEntities()
- : base("name=Books_Shop_KopeykinEntities")
- {
- }
-
- protected override void OnModelCreating(DbModelBuilder modelBuilder)
- {
- throw new UnintentionalCodeFirstException();
- }
-
- public virtual DbSet<Books> Books { get; set; }
- public virtual DbSet<Buyer> Buyer { get; set; }
- public virtual DbSet<Shop> Shop { get; set; }
- public virtual DbSet<sysdiagrams> sysdiagrams { get; set; }
-
- public virtual int sp_alterdiagram(string diagramname, Nullable<int> owner_id, Nullable<int> version, byte[] definition)
- {
- var diagramnameParameter = diagramname != null ?
- new ObjectParameter("diagramname", diagramname) :
- new ObjectParameter("diagramname", typeof(string));
-
- var owner_idParameter = owner_id.HasValue ?
- new ObjectParameter("owner_id", owner_id) :
- new ObjectParameter("owner_id", typeof(int));
-
- var versionParameter = version.HasValue ?
- new ObjectParameter("version", version) :
- new ObjectParameter("version", typeof(int));
-
- var definitionParameter = definition != null ?
- new ObjectParameter("definition", definition) :
- new ObjectParameter("definition", typeof(byte[]));
-
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_alterdiagram", diagramnameParameter, owner_idParameter, versionParameter, definitionParameter);
- }
-
- public virtual int sp_creatediagram(string diagramname, Nullable<int> owner_id, Nullable<int> version, byte[] definition)
- {
- var diagramnameParameter = diagramname != null ?
- new ObjectParameter("diagramname", diagramname) :
- new ObjectParameter("diagramname", typeof(string));
-
- var owner_idParameter = owner_id.HasValue ?
- new ObjectParameter("owner_id", owner_id) :
- new ObjectParameter("owner_id", typeof(int));
-
- var versionParameter = version.HasValue ?
- new ObjectParameter("version", version) :
- new ObjectParameter("version", typeof(int));
-
- var definitionParameter = definition != null ?
- new ObjectParameter("definition", definition) :
- new ObjectParameter("definition", typeof(byte[]));
-
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_creatediagram", diagramnameParameter, owner_idParameter, versionParameter, definitionParameter);
- }
-
- public virtual int sp_dropdiagram(string diagramname, Nullable<int> owner_id)
- {
- var diagramnameParameter = diagramname != null ?
- new ObjectParameter("diagramname", diagramname) :
- new ObjectParameter("diagramname", typeof(string));
-
- var owner_idParameter = owner_id.HasValue ?
- new ObjectParameter("owner_id", owner_id) :
- new ObjectParameter("owner_id", typeof(int));
-
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_dropdiagram", diagramnameParameter, owner_idParameter);
- }
-
- public virtual ObjectResult<sp_helpdiagramdefinition_Result> sp_helpdiagramdefinition(string diagramname, Nullable<int> owner_id)
- {
- var diagramnameParameter = diagramname != null ?
- new ObjectParameter("diagramname", diagramname) :
- new ObjectParameter("diagramname", typeof(string));
-
- var owner_idParameter = owner_id.HasValue ?
- new ObjectParameter("owner_id", owner_id) :
- new ObjectParameter("owner_id", typeof(int));
-
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<sp_helpdiagramdefinition_Result>("sp_helpdiagramdefinition", diagramnameParameter, owner_idParameter);
- }
-
- public virtual ObjectResult<sp_helpdiagrams_Result> sp_helpdiagrams(string diagramname, Nullable<int> owner_id)
- {
- var diagramnameParameter = diagramname != null ?
- new ObjectParameter("diagramname", diagramname) :
- new ObjectParameter("diagramname", typeof(string));
-
- var owner_idParameter = owner_id.HasValue ?
- new ObjectParameter("owner_id", owner_id) :
- new ObjectParameter("owner_id", typeof(int));
-
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<sp_helpdiagrams_Result>("sp_helpdiagrams", diagramnameParameter, owner_idParameter);
- }
-
- public virtual int sp_renamediagram(string diagramname, Nullable<int> owner_id, string new_diagramname)
- {
- var diagramnameParameter = diagramname != null ?
- new ObjectParameter("diagramname", diagramname) :
- new ObjectParameter("diagramname", typeof(string));
-
- var owner_idParameter = owner_id.HasValue ?
- new ObjectParameter("owner_id", owner_id) :
- new ObjectParameter("owner_id", typeof(int));
-
- var new_diagramnameParameter = new_diagramname != null ?
- new ObjectParameter("new_diagramname", new_diagramname) :
- new ObjectParameter("new_diagramname", typeof(string));
-
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_renamediagram", diagramnameParameter, owner_idParameter, new_diagramnameParameter);
- }
-
- public virtual int sp_upgraddiagrams()
- {
- return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_upgraddiagrams");
- }
- }
- }
|