Example #1
0
        static Program()
        {
            AppDbContextFactory factory = new AppDbContextFactory();

            _appContext      = factory.CreateDbContext(null);
            _phoneRepository = new PhoneRepository(_appContext);
            _shopRepository  = new ShopRepository(_appContext);
        }
Example #2
0
        static Program()
        {
            AppDbContextFactory factory = new AppDbContextFactory();

            _appContext       = factory.CreateDbContext(null);
            _cardRepository   = new CardRepository(_appContext);
            _couponRepository = new CouponRepository(_appContext);
        }
Example #3
0
        static Program()
        {
            AppDbContextFactory factory = new AppDbContextFactory();

            _appContext        = factory.CreateDbContext(null);
            _boardRepository   = new BoardRepository(_appContext);
            _postRepository    = new PostRepository(_appContext);
            _commentRepository = new CommentRepository(_appContext);
        }
Example #4
0
        static Program()
        {
            var factory = new AppDbContextFactory();

            _appContext        = factory.CreateDbContext(null);
            _orderRepository   = new OrderRepository(_appContext);
            _productRepository = new ProductRepository(_appContext);
            _clientRepository  = new ClientRepository(_appContext);
        }
Example #5
0
        static Program()
        {
            AppDbContextFactory factory = new AppDbContextFactory();

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