Browse Source

Use db context interface in custom repositories.

pull/87/head
gdlcf88 6 years ago
parent
commit
37a563d41d
  1. 2
      common.props
  2. 2
      modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.EntityFrameworkCore/EasyAbp/EShop/Orders/Orders/OrderRepository.cs
  3. 2
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.EntityFrameworkCore/EasyAbp/EShop/Payments/Payments/PaymentRepository.cs
  4. 2
      modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.EntityFrameworkCore/EasyAbp/EShop/Payments/Refunds/RefundRepository.cs
  5. 2
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/Categories/CategoryRepository.cs
  6. 2
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/ProductCategories/ProductCategoryRepository.cs
  7. 2
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/ProductDetailHistories/ProductDetailHistoryRepository.cs
  8. 2
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/ProductDetails/ProductDetailRepository.cs
  9. 2
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/ProductHistories/ProductHistoryRepository.cs
  10. 2
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/ProductInventories/ProductInventoryRepository.cs
  11. 2
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/ProductStores/ProductStoreRepository.cs
  12. 2
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/ProductTypes/ProductTypeRepository.cs
  13. 2
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/Products/ProductRepository.cs
  14. 2
      modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.EntityFrameworkCore/EasyAbp/EShop/Stores/Stores/StoreRepository.cs
  15. 2
      plugins/Baskets/src/EasyAbp.EShop.Plugins.Baskets.EntityFrameworkCore/EasyAbp/EShop/Plugins/Baskets/BasketItems/BasketItemRepository.cs
  16. 2
      plugins/Baskets/src/EasyAbp.EShop.Plugins.Baskets.EntityFrameworkCore/EasyAbp/EShop/Plugins/Baskets/ProductUpdates/ProductUpdateRepository.cs

2
common.props

@ -1,7 +1,7 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
<Version>0.9.1</Version>
<Version>0.9.2</Version>
<NoWarn>$(NoWarn);CS1591</NoWarn>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>EasyAbp Team</Authors>

2
modules/EasyAbp.EShop.Orders/src/EasyAbp.EShop.Orders.EntityFrameworkCore/EasyAbp/EShop/Orders/Orders/OrderRepository.cs

@ -12,7 +12,7 @@ namespace EasyAbp.EShop.Orders.Orders
{
public class OrderRepository : EfCoreRepository<IOrdersDbContext, Order, Guid>, IOrderRepository
{
public OrderRepository(IDbContextProvider<OrdersDbContext> dbContextProvider) : base(dbContextProvider)
public OrderRepository(IDbContextProvider<IOrdersDbContext> dbContextProvider) : base(dbContextProvider)
{
}

2
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.EntityFrameworkCore/EasyAbp/EShop/Payments/Payments/PaymentRepository.cs

@ -9,7 +9,7 @@ namespace EasyAbp.EShop.Payments.Payments
{
public class PaymentRepository : EfCoreRepository<IPaymentsDbContext, Payment, Guid>, IPaymentRepository
{
public PaymentRepository(IDbContextProvider<PaymentsDbContext> dbContextProvider) : base(dbContextProvider)
public PaymentRepository(IDbContextProvider<IPaymentsDbContext> dbContextProvider) : base(dbContextProvider)
{
}

2
modules/EasyAbp.EShop.Payments/src/EasyAbp.EShop.Payments.EntityFrameworkCore/EasyAbp/EShop/Payments/Refunds/RefundRepository.cs

@ -8,7 +8,7 @@ namespace EasyAbp.EShop.Payments.Refunds
{
public class RefundRepository : EfCoreRepository<IPaymentsDbContext, Refund, Guid>, IRefundRepository
{
public RefundRepository(IDbContextProvider<PaymentsDbContext> dbContextProvider) : base(dbContextProvider)
public RefundRepository(IDbContextProvider<IPaymentsDbContext> dbContextProvider) : base(dbContextProvider)
{
}

2
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/Categories/CategoryRepository.cs

@ -8,7 +8,7 @@ namespace EasyAbp.EShop.Products.Categories
{
public class CategoryRepository : EfCoreTreeRepository<ProductsDbContext, Category>, ICategoryRepository
{
public CategoryRepository(IDbContextProvider<ProductsDbContext> dbContextProvider) : base(dbContextProvider)
public CategoryRepository(IDbContextProvider<IProductsDbContext> dbContextProvider) : base(dbContextProvider)
{
}
}

2
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/ProductCategories/ProductCategoryRepository.cs

@ -12,7 +12,7 @@ namespace EasyAbp.EShop.Products.ProductCategories
{
public class ProductCategoryRepository : EfCoreRepository<IProductsDbContext, ProductCategory, Guid>, IProductCategoryRepository
{
public ProductCategoryRepository(IDbContextProvider<ProductsDbContext> dbContextProvider) : base(dbContextProvider)
public ProductCategoryRepository(IDbContextProvider<IProductsDbContext> dbContextProvider) : base(dbContextProvider)
{
}

2
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/ProductDetailHistories/ProductDetailHistoryRepository.cs

@ -12,7 +12,7 @@ namespace EasyAbp.EShop.Products.ProductDetailHistories
{
public class ProductDetailHistoryRepository : EfCoreRepository<IProductsDbContext, ProductDetailHistory, Guid>, IProductDetailHistoryRepository
{
public ProductDetailHistoryRepository(IDbContextProvider<ProductsDbContext> dbContextProvider) : base(dbContextProvider)
public ProductDetailHistoryRepository(IDbContextProvider<IProductsDbContext> dbContextProvider) : base(dbContextProvider)
{
}

2
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/ProductDetails/ProductDetailRepository.cs

@ -7,7 +7,7 @@ namespace EasyAbp.EShop.Products.ProductDetails
{
public class ProductDetailRepository : EfCoreRepository<IProductsDbContext, ProductDetail, Guid>, IProductDetailRepository
{
public ProductDetailRepository(IDbContextProvider<ProductsDbContext> dbContextProvider) : base(dbContextProvider)
public ProductDetailRepository(IDbContextProvider<IProductsDbContext> dbContextProvider) : base(dbContextProvider)
{
}
}

2
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/ProductHistories/ProductHistoryRepository.cs

@ -12,7 +12,7 @@ namespace EasyAbp.EShop.Products.ProductHistories
{
public class ProductHistoryRepository : EfCoreRepository<IProductsDbContext, ProductHistory, Guid>, IProductHistoryRepository
{
public ProductHistoryRepository(IDbContextProvider<ProductsDbContext> dbContextProvider) : base(dbContextProvider)
public ProductHistoryRepository(IDbContextProvider<IProductsDbContext> dbContextProvider) : base(dbContextProvider)
{
}

2
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/ProductInventories/ProductInventoryRepository.cs

@ -13,7 +13,7 @@ namespace EasyAbp.EShop.Products.ProductInventories
{
public class ProductInventoryRepository : EfCoreRepository<IProductsDbContext, ProductInventory, Guid>, IProductInventoryRepository
{
public ProductInventoryRepository(IDbContextProvider<ProductsDbContext> dbContextProvider) : base(dbContextProvider)
public ProductInventoryRepository(IDbContextProvider<IProductsDbContext> dbContextProvider) : base(dbContextProvider)
{
}

2
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/ProductStores/ProductStoreRepository.cs

@ -12,7 +12,7 @@ namespace EasyAbp.EShop.Products.ProductStores
{
public class ProductStoreRepository : EfCoreRepository<IProductsDbContext, ProductStore, Guid>, IProductStoreRepository
{
public ProductStoreRepository(IDbContextProvider<ProductsDbContext> dbContextProvider) : base(dbContextProvider)
public ProductStoreRepository(IDbContextProvider<IProductsDbContext> dbContextProvider) : base(dbContextProvider)
{
}

2
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/ProductTypes/ProductTypeRepository.cs

@ -7,7 +7,7 @@ namespace EasyAbp.EShop.Products.ProductTypes
{
public class ProductTypeRepository : EfCoreRepository<IProductsDbContext, ProductType, Guid>, IProductTypeRepository
{
public ProductTypeRepository(IDbContextProvider<ProductsDbContext> dbContextProvider) : base(dbContextProvider)
public ProductTypeRepository(IDbContextProvider<IProductsDbContext> dbContextProvider) : base(dbContextProvider)
{
}
}

2
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.EntityFrameworkCore/EasyAbp/EShop/Products/Products/ProductRepository.cs

@ -9,7 +9,7 @@ namespace EasyAbp.EShop.Products.Products
{
public class ProductRepository : EfCoreRepository<IProductsDbContext, Product, Guid>, IProductRepository
{
public ProductRepository(IDbContextProvider<ProductsDbContext> dbContextProvider) : base(dbContextProvider)
public ProductRepository(IDbContextProvider<IProductsDbContext> dbContextProvider) : base(dbContextProvider)
{
}

2
modules/EasyAbp.EShop.Stores/src/EasyAbp.EShop.Stores.EntityFrameworkCore/EasyAbp/EShop/Stores/Stores/StoreRepository.cs

@ -10,7 +10,7 @@ namespace EasyAbp.EShop.Stores.Stores
{
public class StoreRepository : EfCoreRepository<IStoresDbContext, Store, Guid>, IStoreRepository
{
public StoreRepository(IDbContextProvider<StoresDbContext> dbContextProvider) : base(dbContextProvider)
public StoreRepository(IDbContextProvider<IStoresDbContext> dbContextProvider) : base(dbContextProvider)
{
}

2
plugins/Baskets/src/EasyAbp.EShop.Plugins.Baskets.EntityFrameworkCore/EasyAbp/EShop/Plugins/Baskets/BasketItems/BasketItemRepository.cs

@ -7,7 +7,7 @@ namespace EasyAbp.EShop.Plugins.Baskets.BasketItems
{
public class BasketItemRepository : EfCoreRepository<IBasketsDbContext, BasketItem, Guid>, IBasketItemRepository
{
public BasketItemRepository(IDbContextProvider<BasketsDbContext> dbContextProvider) : base(dbContextProvider)
public BasketItemRepository(IDbContextProvider<IBasketsDbContext> dbContextProvider) : base(dbContextProvider)
{
}
}

2
plugins/Baskets/src/EasyAbp.EShop.Plugins.Baskets.EntityFrameworkCore/EasyAbp/EShop/Plugins/Baskets/ProductUpdates/ProductUpdateRepository.cs

@ -12,7 +12,7 @@ namespace EasyAbp.EShop.Plugins.Baskets.ProductUpdates
{
public class ProductUpdateRepository : EfCoreRepository<IBasketsDbContext, ProductUpdate, Guid>, IProductUpdateRepository
{
public ProductUpdateRepository(IDbContextProvider<BasketsDbContext> dbContextProvider) : base(dbContextProvider)
public ProductUpdateRepository(IDbContextProvider<IBasketsDbContext> dbContextProvider) : base(dbContextProvider)
{
}

Loading…
Cancel
Save