Ejemplo n.º 1
0
 public SqlLiteProductRepository()
 {
     _connection        = DependencyService.Get <ISqlLiteConnection>().GetConnection();
     _localStorageImage = DependencyService.Get <ILocalStorageImageService>();
     _connection.CreateTable <ProductEntity>();
     _connection.CreateTable <ImageEntity>();
     _connection.CreateTable <ReviewEntity>();
     _connection.CreateTable <PriceEntity>();
     _connection.CreateTable <ProductPropertyEntity>();
     _connection.CreateTable <CurrencyEntity>();
 }
Ejemplo n.º 2
0
 public ProductStorageService(IProductRepository productRepository)
 {
     _imageService      = DependencyService.Get <ILocalStorageImageService>();
     _productRepository = productRepository;
 }