Esempio n. 1
0
 public ProductRepository()
 {
     db                  = new MYProjectContext();
     products            = db.Set <Product>();
     showcaseProducts    = db.Set <ShowcaseProduct>();
     productImageRepo    = new ProductImageRepository();
     categoryRepo        = new CategoryRepository();
     brandRepo           = new BrandRepository();
     productCategoryRepo = new ProductCategoryRepository();
 }
 public OrderRepository()
 {
     db               = new MYProjectContext();
     orders           = db.Set <Order>();
     orderStatusyRepo = new OrderStatusiesRepository();
     virtualRepo      = new VirtualPosBankRepository();
 }
 public ShowcaseProductRepository()
 {
     db = new MYProjectContext();
     showcaseproducts       = db.Set <ShowcaseProduct>();
     showcaseRepository     = new ShowcaseRepository();
     productRepository      = new ProductRepository();
     productImageRepository = new ProductImageRepository();
 }
Esempio n. 4
0
 public OrderStatusiesRepository()
 {
     db             = new MYProjectContext();
     orderStatusies = db.Set <OrderStatusy>();
 }
Esempio n. 5
0
 public ContentPageRepository()
 {
     db           = new MYProjectContext();
     contentPages = db.Set <ContentPage>();
 }
Esempio n. 6
0
 public SettingRepository()
 {
     db       = new MYProjectContext();
     settings = db.Set <Setting>();
 }
 public DistrictRepository()
 {
     db        = new MYProjectContext();
     districts = db.Set <District>();
 }
 public ProductCategoryRepository()
 {
     db = new MYProjectContext();
     productCategories = db.Set <ProductCategory>();
 }
 public CustomerRepository()
 {
     db        = new MYProjectContext();
     customers = db.Set <Customer>();
 }
Esempio n. 10
0
 public CategoryRepository()
 {
     db            = new MYProjectContext();
     categories    = db.Set <Category>();
     categoryModel = db.Set <CategoryModel>();
 }
Esempio n. 11
0
 public VirtualPosBankRepository()
 {
     db             = new MYProjectContext();
     virtualPosBank = db.Set <VirtualPosBank>();
 }
 public AdministratorRepository()
 {
     db             = new MYProjectContext();
     administrators = db.Set <Administrator>();
 }
 public ShowcaseRepository()
 {
     db        = new MYProjectContext();
     showcases = db.Set <Showcase>();
 }
 public CityRepository()
 {
     db    = new MYProjectContext();
     citys = db.Set <City>();
 }
Esempio n. 15
0
 public ProductImageRepository()
 {
     db            = new MYProjectContext();
     productImages = db.Set <ProductImage>();
 }
 public BannerRepository()
 {
     db      = new MYProjectContext();
     banners = db.Set <Banner>();
 }
Esempio n. 17
0
 public BrandRepository()
 {
     db     = new MYProjectContext();
     brands = db.Set <Brand>();
 }
 public SliderRepository()
 {
     db      = new MYProjectContext();
     sliders = db.Set <Slider>();
 }