Exemplo n.º 1
0
        // public static MySqlDataReader dr = StaticInitializerThatDoesNotThrow();

        static Program()
        {
            AppDbContextFactory factory = new AppDbContextFactory();

            _appDbContext     = factory.CreateDbContext(null !);
            _valuteRepository = new ValuteRepository(_appDbContext);
        }
Exemplo n.º 2
0
        static Program()
        {
            AppDbContextFactory factory = new AppDbContextFactory();

            _appContext      = factory.CreateDbContext(null);
            _phoneRepository = new PhoneRepository(_appContext);
            _shopRepository  = new ShopRepository(_appContext);
        }
Exemplo n.º 3
0
        static Program()
        {
            AppDbContextFactory factory = new AppDbContextFactory();

            _appContext       = factory.CreateDbContext(null);
            _cardRepository   = new CardRepository(_appContext);
            _couponRepository = new CouponRepository(_appContext);
        }
Exemplo n.º 4
0
        static Program()
        {
            AppDbContextFactory factory = new AppDbContextFactory();

            _appContext        = factory.CreateDbContext(null);
            _boardRepository   = new BoardRepository(_appContext);
            _postRepository    = new PostRepository(_appContext);
            _commentRepository = new CommentRepository(_appContext);
        }
Exemplo n.º 5
0
        static Program()
        {
            var factory = new AppDbContextFactory();

            _appContext        = factory.CreateDbContext(null);
            _orderRepository   = new OrderRepository(_appContext);
            _productRepository = new ProductRepository(_appContext);
            _clientRepository  = new ClientRepository(_appContext);
        }
Exemplo n.º 6
0
        static Program()
        {
            AppDbContextFactory factory = new AppDbContextFactory();

            _appContext          = factory.CreateDbContext(null);
            _makerRepository     = new MakerRepository(_appContext);
            _partRepository      = new PartRepository(_appContext);
            _selectionRepository = new SelectionRepository(_appContext);
        }