public UsersController(IUserRepository userRepository,
                        IBaseUrl baseUrl,
                        IImgService imgService)
 {
     _userRepository = userRepository;
     _baseUrl        = baseUrl;
     _imgService     = imgService;
 }
 public EmployeesController(IGenericRepository <Employee> genericRepository,
                            IBaseUrl baseUrl,
                            IImgService imgService)
 {
     _genericRepository = genericRepository;
     _baseUrl           = baseUrl;
     _imgService        = imgService;
 }
 public ProvidersController(IGenericRepository <Provider> genericRepository,
                            IBaseUrl baseUrl,
                            IImgService imgService)
 {
     _genericRepository = genericRepository;
     _baseUrl           = baseUrl;
     _imgService        = imgService;
 }
Пример #4
0
 public Repository(IBaseUrl baseUrl)
 {
     _baseUrl = baseUrl;
     //if (_dbManager == null)
     //{
     _dbManager = new SQLiteConnection(_baseUrl.GetDatabasePath());
     _dbManager.CreateTable <T>();
     //}
 }
Пример #5
0
        public Repository(IBaseUrl baseUrl)
        {
            _baseUrl = baseUrl;


            using (SQLiteConnection _dbManager = new SQLiteConnection(_baseUrl.GetDatabasePath(), WriteOnlyFlags, storeDateTimeAsTicks: false))
            {
                _dbManager.CreateTable <T>();
            }
        }
 public CustomersController(IBaseUrl baseUrl,
                            IGenericRepository <Customer> genericRepository,
                            IImgService imgService,
                            IMapper mapper
                            )
 {
     _baseUrl           = baseUrl;
     _genericRepository = genericRepository;
     _imgService        = imgService;
     _mapper            = mapper;
 }
 public ToolsController(ApplicationDbContext db,
                        IGenericRepository <Tool> genericRepository,
                        IGenericRepository <Customer> customerRepository,
                        IAccountRepository accountRepository,
                        IImgService imgService,
                        IBaseUrl baseUrl)
 {
     _db = db;
     _genericRepository  = genericRepository;
     _customerRepository = customerRepository;
     _accountRepository  = accountRepository;
     _imgService         = imgService;
     _baseUrl            = baseUrl;
 }
Пример #8
0
 public OperationReportsController(IAccountRepository accountRepository,
                                   IGenericRepository <WeeklyReport> genericRepository,
                                   ApplicationDbContext db,
                                   IWebHostEnvironment env,
                                   IImgService imgService,
                                   IWeekyReportPanel weekyReportPanel,
                                   IBaseUrl baseUrl)
 {
     _accountRepository = accountRepository;
     _genericRepository = genericRepository;
     _db               = db;
     _imgService       = imgService;
     _weekyReportPanel = weekyReportPanel;
     _baseUrl          = baseUrl;
     _env              = env;
 }
Пример #9
0
 public AuthenticationService(IBaseUrl baseurl)
 {
     BaseUrl = baseurl;
 }
 public QueuedRepository(IBaseUrl baseUrl)
 {
     _baseUrl   = baseUrl;
     _dbManager = new SQLiteAsyncConnection(_baseUrl.GetDatabasePath(), storeDateTimeAsTicks: false);
     _dbManager?.CreateTableAsync <T>();
 }
Пример #11
0
 public ApiClient(IBaseUrl baseUrl)
 {
     _baseUrl       = baseUrl.GetUrl();
     namingStrategy = new CamelCaseNamingStrategy();
 }