Ejemplo n.º 1
0
 /// <summary>
 /// Initialize all the daos
 /// </summary>
 private void RegisterDaos()
 {
     AddressDao           = new AddressDao(_context);
     CouponCodeDao        = new CouponCodeDao(_context);
     CouponCodeProductDao = new CouponCodeProductDao(_context);
     OrderDao             = new OrderDao(_context);
     OrderProductsDao     = new OrderProductsDao(_context);
     ProductDao           = new ProductDao(_context);
     ReviewDao            = new ReviewDao(_context);
     RoleDao               = new RoleDao(_context);
     ShoppingBasketDao     = new ShoppingBasketDao(_context);
     ShoppingBasketItemDao = new ShoppingBasketItemDao(_context);
     SpecificationDao      = new SpecificationDao(_context);
     UserDao               = new UserDao(_context);
     WishlistDao           = new WishlistDao(_context);
     WishlistItemDao       = new WishlistItemDao(_context);
 }
 public ProductService()
 {
     ProductDao = new ProductDao<ProductInfo>();
     UnitDao = new DictionaryDao<Unit>();
     SpecificationDao = new SpecificationDao<Specification>();
 }