public OutletManagerService()
        {
            OrcusSMEContext context = new OrcusSMEContext(new DbContextOptions <OrcusSMEContext>());

            _outletManagerRepo = new OutletManagerRepo(context);
            _crashLogRepo      = new CrashLogRepo(context);
        }
Beispiel #2
0
        public FileService()
        {
            OrcusSMEContext context = new OrcusSMEContext(new DbContextOptions <OrcusSMEContext>());

            _fileRepo           = new FileRepo(context);
            _crashLogRepo       = new CrashLogRepo(context);
            _productPictureRepo = new ProductPictureRepo(context);
        }
Beispiel #3
0
        public SubscriptionService(ISubscriptionLogRepo subscriptionLogRepo, IServiceRepo subscriptionRepo)
        {
            OrcusSMEContext context = new OrcusSMEContext(new DbContextOptions <OrcusSMEContext>());

            _subscriptionLogRepo = subscriptionLogRepo;
            _subscriptionRepo    = subscriptionRepo;
            _crashLogRepo        = new CrashLogRepo(context);
        }
Beispiel #4
0
        public UserService()
        {
            OrcusSMEContext context = new OrcusSMEContext(new DbContextOptions <OrcusSMEContext>());

            _userRepo     = new UserRepo(context);
            _crashLogRepo = new CrashLogRepo(context);
            _emailIdRepo  = new EmailIdRepo(context);
        }
        public CategoryService()
        {
            OrcusSMEContext context = new OrcusSMEContext(new DbContextOptions <OrcusSMEContext>());

            _categoryRepo = new CategoryRepo(context);
            _crashLogRepo = new CrashLogRepo(context);
            //_productRepo = new IProductRepo(context);
        }
Beispiel #6
0
        //private readonly IProductPictureRepo _productPicRepo;

        public ProductService()
        {
            OrcusSMEContext context = new OrcusSMEContext(new DbContextOptions <OrcusSMEContext>());

            _productUnitTypeRepo = new ProductUnitTypeRepo(context);
            _crashLogRepo        = new CrashLogRepo(context);
            _inventoryLogRepo    = new InventoryLogRepo(context);
            _productRepo         = new ProductRepo(context);
            _outletManagerRepo   = new OutletManagerRepo(context);
            _categoryRepo        = new CategoryRepo(context);
            //_productPicRepo = new ProductPictureRepo(context);
        }
Beispiel #7
0
 public ProductRepo(OrcusSMEContext context) : base(context)
 {
 }
Beispiel #8
0
 public OutletManagerRepo(OrcusSMEContext context) : base(context)
 {
 }
Beispiel #9
0
 public UserRepo(OrcusSMEContext context) : base(context)
 {
 }
Beispiel #10
0
 internal RepositoryBase(OrcusSMEContext context)
 {
     Db     = context;
     _dbSet = Db.Set <T>();
 }
Beispiel #11
0
        //private readonly IDbContextTransaction transaction;

        internal RepositoryBase()
        {
            Db     = new OrcusSMEContext(new DbContextOptions <OrcusSMEContext>());
            _dbSet = Db.Set <T>();
            //transaction = db.Database.BeginTransaction();
        }
Beispiel #12
0
 public EmailIdRepo(OrcusSMEContext context) : base(context)
 {
 }
Beispiel #13
0
 public ProductPictureRepo(OrcusSMEContext context) : base(context)
 {
 }
Beispiel #14
0
 public FileRepo(OrcusSMEContext context) : base(context)
 {
 }
Beispiel #15
0
 public InventoryLogRepo(OrcusSMEContext context) : base(context)
 {
 }
Beispiel #16
0
 public ProductUnitTypeRepo(OrcusSMEContext context) : base(context)
 {
 }
Beispiel #17
0
 public CrashLogRepo(OrcusSMEContext context) : base(context)
 {
 }
Beispiel #18
0
 public CategoryRepo(OrcusSMEContext context) : base(context)
 {
 }