Ejemplo n.º 1
0
 /// <summary>
 ///  Repositories for interaction with the database
 /// </summary>
 static Unit()
 {
     contex = new StoreDbContex("StoreDb");
     StatisticsRepository         = new StatisticRepository(contex);
     ContactInformationRepository = new ContactInformationRepository(contex);
     CategoryRepository           = new CategoryRepository(contex);
     ClientUserRepository         = new ClientUserRepository(contex);
     CompanyProviderRepository    = new CompanyProviderRepository(contex);
     EmployeeRepository           = new EmployeeRepository(contex);
     PositionEmployeeRepository   = new PositionEmployeeRepository(contex);
     InvoiceForPurchaseRepository = new InvoiceForPurchaseRepository(contex);
     ProductRepository            = new ProductRepository(contex);
     SalesInvoiceRepository       = new SalesInvoiceRepository(contex);
     CompanyСustomerRepository    = new CompanyCustomerRepository(contex);
     ProductInStockRepository     = new ProductInStockRepository(contex);
 }
Ejemplo n.º 2
0
 public GenericRepositories(StoreDbContex Contex)
 {
     context = Contex;
 }
 public CompanyCustomerRepository(StoreDbContex Contex) : base(Contex)
 {
 }
 public ProductRepository(StoreDbContex Contex) : base(Contex)
 {
 }
 public SalesInvoiceRepository(StoreDbContex Contex) : base(Contex)
 {
 }
 public InvoiceForPurchaseRepository(StoreDbContex Contex) : base(Contex)
 {
 }
 public PositionEmployeeRepository(StoreDbContex Contex) : base(Contex)
 {
 }
 public CompanyProviderRepository(StoreDbContex Contex) : base(Contex)
 {
 }
 public ClientUserRepository(StoreDbContex Contex) : base(Contex)
 {
 }
 public CategoryRepository(StoreDbContex Contex) : base(Contex)
 {
 }
 public ContactInformationRepository(StoreDbContex Contex) : base(Contex)
 {
 }
 public StatisticRepository(StoreDbContex Contex) : base(Contex)
 {
 }