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; }
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(); }
public ShoppingCartRepository(INhibernateConnection connection) { _session = connection.CreateSessionFactory().OpenSession(); }
public DeliveryTypesRepository(INhibernateConnection session) { _session = session.CreateSessionFactory().OpenSession(); }
public OrderDetailsRepository(INhibernateConnection connection) { _connection = connection; _session = _connection.CreateSessionFactory().OpenSession(); }
public ProductsRepository(INhibernateConnection connection) { _connection = connection; _session = _connection.CreateSessionFactory().OpenSession(); }
public CategoryRepository(INhibernateConnection connection) { _session = connection.CreateSessionFactory().OpenSession(); }
public ManufacturersRepository(INhibernateConnection connection) { _connection = connection; _session = _connection.CreateSessionFactory().OpenSession(); }