BaseModel.Context.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан по шаблону.
  4. //
  5. // Изменения, вносимые в этот файл вручную, могут привести к непредвиденной работе приложения.
  6. // Изменения, вносимые в этот файл вручную, будут перезаписаны при повторном создании кода.
  7. // </auto-generated>
  8. //------------------------------------------------------------------------------
  9. namespace Khaustov_ProbniyDE
  10. {
  11. using System;
  12. using System.Data.Entity;
  13. using System.Data.Entity.Infrastructure;
  14. public partial class Хаустов_ПробныйДЭEntities : DbContext
  15. {
  16. private static Хаустов_ПробныйДЭEntities _context;
  17. public Хаустов_ПробныйДЭEntities()
  18. : base("name=Хаустов_ПробныйДЭEntities")
  19. {
  20. }
  21. public static Хаустов_ПробныйДЭEntities GetContext()
  22. {
  23. if (_context == null)
  24. _context = new Хаустов_ПробныйДЭEntities();
  25. return _context;
  26. }
  27. protected override void OnModelCreating(DbModelBuilder modelBuilder)
  28. {
  29. throw new UnintentionalCodeFirstException();
  30. }
  31. public virtual DbSet<Client> Client { get; set; }
  32. public virtual DbSet<ClientService> ClientService { get; set; }
  33. public virtual DbSet<DocumentByService> DocumentByService { get; set; }
  34. public virtual DbSet<Gender> Gender { get; set; }
  35. public virtual DbSet<Manufacturer> Manufacturer { get; set; }
  36. public virtual DbSet<Product> Product { get; set; }
  37. public virtual DbSet<ProductPhoto> ProductPhoto { get; set; }
  38. public virtual DbSet<ProductSale> ProductSale { get; set; }
  39. public virtual DbSet<Service> Service { get; set; }
  40. public virtual DbSet<ServicePhoto> ServicePhoto { get; set; }
  41. public virtual DbSet<sysdiagrams> sysdiagrams { get; set; }
  42. public virtual DbSet<Tag> Tag { get; set; }
  43. public virtual DbSet<Учетки> Учетки { get; set; }
  44. }
  45. }