コード例 #1
0
 public UsersController(IUserRepository userRepository,
                        IBaseUrl baseUrl,
                        IImgService imgService)
 {
     _userRepository = userRepository;
     _baseUrl        = baseUrl;
     _imgService     = imgService;
 }
コード例 #2
0
 public EmployeesController(IGenericRepository <Employee> genericRepository,
                            IBaseUrl baseUrl,
                            IImgService imgService)
 {
     _genericRepository = genericRepository;
     _baseUrl           = baseUrl;
     _imgService        = imgService;
 }
コード例 #3
0
 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>();
            }
        }
コード例 #6
0
 public CustomersController(IBaseUrl baseUrl,
                            IGenericRepository <Customer> genericRepository,
                            IImgService imgService,
                            IMapper mapper
                            )
 {
     _baseUrl           = baseUrl;
     _genericRepository = genericRepository;
     _imgService        = imgService;
     _mapper            = mapper;
 }
コード例 #7
0
 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;
 }
コード例 #10
0
 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();
 }