public LocalDbAskAnExpertService(ISQLiteConnectionService _SQLiteConnectionService)
 {
     db = _SQLiteConnectionService.getConnection();
     db.CreateTable <InstructingExpert>();
     db.CreateTable <InstructorSubjectReview>();
     db.CreateTable <InstructorSubject>();
 }
예제 #2
0
 public LocalEvaluationService(ISQLiteConnectionService _SQLiteConnectionService)
 {
     db = _SQLiteConnectionService.getConnection();
     db.CreateTable <Question>();
     db.CreateTable <QuestionOption>();
     db.CreateTable <MyEvaluation>();
 }
예제 #3
0
 public LocalDbService(ISQLiteConnectionService _SQLiteConnectionService)
 {
     db = _SQLiteConnectionService.getConnection();
     db.CreateTable <UserToken>();
     db.CreateTable <UserInfo>();
     db.CreateTable <ExternalLoginInfo>();
 }
 public LocalDbCareerCounsellingService(ISQLiteConnectionService _SQLiteConnectionService)
 {
     db = _SQLiteConnectionService.getConnection();
     db.CreateTable <InstructingExpert>();
     db.CreateTable <InstructorSubjectReview>();
     db.CreateTable <InstructorSubject>();
 }
 public LocalDbLearningService(ISQLiteConnectionService _SQLiteConnectionService)
 {
     db = _SQLiteConnectionService.getConnection();
     db.CreateTable <Ebook>();
     db.CreateTable <EbookCategory>();
     db.CreateTable <EbookSubject>();
 }
 public ProductService(ISQLiteConnectionService sqaLiteConnectionService)
 {
     if (sqaLiteConnectionService == null)
     {
         throw new ArgumentNullException(nameof(sqaLiteConnectionService));
     }
     _cn = sqaLiteConnectionService.GetConnection();
 }
예제 #7
0
        public SettingsRepository(ILoggingService loggingService, ISQLiteConnectionService sqLiteConnectionService)
        {
            _loggingService = loggingService;

            _asyncConnection = sqLiteConnectionService.AsyncConnection;

            _asyncConnection.CreateTableAsync <Settings> ();
        }
 public DeliveryHistoryService(ISQLiteConnectionService sqLiteConnectionService)
 {
     if (sqLiteConnectionService == null)
     {
         throw new ArgumentNullException(nameof(sqLiteConnectionService));
     }
     _cn = sqLiteConnectionService.GetConnection();
 }
 public OrderService(ISQLiteConnectionService sqLiteConnectionService, IDeliveryHistoryService deliveryHistoryService, IDataGenerator dataGenerator)
 {
     if (sqLiteConnectionService == null)
     {
         throw new ArgumentNullException(nameof(sqLiteConnectionService));
     }
     if (deliveryHistoryService == null)
     {
         throw new ArgumentNullException(nameof(deliveryHistoryService));
     }
     if (dataGenerator == null)
     {
         throw new ArgumentNullException(nameof(dataGenerator));
     }
     _cn = sqLiteConnectionService.GetConnection();
     _deliveryHistoryService = deliveryHistoryService;
     _dataGenerator          = dataGenerator;
 }
        public CachedMediaRepository(
            ILoggingService loggingService,
            IRestService restService,
            ISettingsRepository settingsRepository,
            ISitecoreService sitecoreService,
            ICacheValidatorService cacheValidatorService,
            ISQLiteConnectionService sqLiteConnectionService)
        {
            _loggingService        = loggingService;
            _restService           = restService;
            _settingsRepository    = settingsRepository;
            _sitecoreService       = sitecoreService;
            _cacheValidatorService = cacheValidatorService;

            _settings        = _settingsRepository.GetWithFallback();
            _useHostInUrl    = true;
            _asyncConnection = sqLiteConnectionService.AsyncConnection;
            _asyncConnection.CreateTableAsync <CachedMedia> ();
        }
예제 #11
0
        public Database(ISQLiteConnectionService sqLiteConnectionService, IProductService productService, ICustomerService customerService, IOrderService orderService, IDeliveryHistoryService deliveryHistoryService, IDeliveryStopService deliveryStopService)
        {
            if (sqLiteConnectionService == null)
            {
                throw new ArgumentNullException(nameof(sqLiteConnectionService));
            }

            if (productService == null)
            {
                throw new ArgumentNullException(nameof(productService));
            }

            if (customerService == null)
            {
                throw new ArgumentNullException(nameof(customerService));
            }

            if (orderService == null)
            {
                throw new ArgumentNullException(nameof(orderService));
            }

            if (deliveryHistoryService == null)
            {
                throw new ArgumentNullException(nameof(deliveryHistoryService));
            }

            if (deliveryStopService == null)
            {
                throw new ArgumentNullException(nameof(deliveryStopService));
            }

            _cn                     = sqLiteConnectionService.GetConnection();
            _productService         = productService;
            _customerService        = customerService;
            _orderService           = orderService;
            _deliveryHistoryService = deliveryHistoryService;
            _deliveryStopService    = deliveryStopService;
        }
예제 #12
0
        //public string GetUserFullName(UserDto user)
        //{
        //    return user.FirstName + " " + user.LastName;
        //}

        public UserDataService(ISQLiteConnectionService connectionService)
        {
            _dbConnection = connectionService.GetConnection();
            _dbConnection.CreateTableAsync <User>();
        }