コード例 #1
0
 public ProductsController(
     INhibernateConnection connection, IProductsRepository repo,
     ICategoryRepository categoryRepo,
     IManufacturersRepository manufacturersRepo,
     IProductImagesRepository productImageRepo
     )
 {
     _productRepo = repo;
     ISessionFactory sessionFactory = connection.CreateSessionFactory();
     _session = sessionFactory.OpenSession();
     _categoryRepo = categoryRepo;
     _manufacturersRepo = manufacturersRepo;
     _productImagesRepository = productImageRepo;
 }
コード例 #2
0
 public SetupController(ICategoryRepository catRepo, IOrderDetailsRepository orderDetailsRepository,
     IOrdersRepository orderRepo, IManufacturersRepository manuRepo,
     IProductImagesRepository productImgRepo, IUserRepository userRepo, INhibernateConnection conn,
     IProductsRepository productRepo,
     IDeliveryTypesRepository deliveryRepo)
 {
     _manuRepo = manuRepo;
     _productRepo = productRepo;
     _catRepo = catRepo;
     _productImagesRepository = productImgRepo;
     _userRepo = userRepo;
     _ordersRepository = orderRepo;
     _orderDetailsRepository = orderDetailsRepository;
     _deliveryRepo = deliveryRepo;
     _session = conn.CreateSessionFactory().OpenSession();
 }
コード例 #3
0
 public ShoppingCartRepository(INhibernateConnection connection)
 {
     _session = connection.CreateSessionFactory().OpenSession();
 }
コード例 #4
0
 public DeliveryTypesRepository(INhibernateConnection session)
 {
     _session = session.CreateSessionFactory().OpenSession();
 }
コード例 #5
0
 public OrderDetailsRepository(INhibernateConnection connection)
 {
     _connection = connection;
     _session = _connection.CreateSessionFactory().OpenSession();
 }
コード例 #6
0
 public ProductsRepository(INhibernateConnection connection)
 {
     _connection = connection;
     _session = _connection.CreateSessionFactory().OpenSession();
 }
コード例 #7
0
 public CategoryRepository(INhibernateConnection connection)
 {
     _session = connection.CreateSessionFactory().OpenSession();
 }
コード例 #8
0
 public ManufacturersRepository(INhibernateConnection connection)
 {
     _connection = connection;
     _session = _connection.CreateSessionFactory().OpenSession();
 }