// public static MySqlDataReader dr = StaticInitializerThatDoesNotThrow(); static Program() { AppDbContextFactory factory = new AppDbContextFactory(); _appDbContext = factory.CreateDbContext(null !); _valuteRepository = new ValuteRepository(_appDbContext); }
static Program() { AppDbContextFactory factory = new AppDbContextFactory(); _appContext = factory.CreateDbContext(null); _phoneRepository = new PhoneRepository(_appContext); _shopRepository = new ShopRepository(_appContext); }
static Program() { AppDbContextFactory factory = new AppDbContextFactory(); _appContext = factory.CreateDbContext(null); _cardRepository = new CardRepository(_appContext); _couponRepository = new CouponRepository(_appContext); }
static Program() { AppDbContextFactory factory = new AppDbContextFactory(); _appContext = factory.CreateDbContext(null); _boardRepository = new BoardRepository(_appContext); _postRepository = new PostRepository(_appContext); _commentRepository = new CommentRepository(_appContext); }
static Program() { var factory = new AppDbContextFactory(); _appContext = factory.CreateDbContext(null); _orderRepository = new OrderRepository(_appContext); _productRepository = new ProductRepository(_appContext); _clientRepository = new ClientRepository(_appContext); }
static Program() { AppDbContextFactory factory = new AppDbContextFactory(); _appContext = factory.CreateDbContext(null); _makerRepository = new MakerRepository(_appContext); _partRepository = new PartRepository(_appContext); _selectionRepository = new SelectionRepository(_appContext); }