product
This commit is contained in:
		| @ -0,0 +1,25 @@ | ||||
| using KonSoft.Admin.Entities; | ||||
| using KonSoft.Admin.Repositories; | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Linq; | ||||
| using System.Linq.Expressions; | ||||
| using System.Threading.Tasks; | ||||
| using Volo.Abp.Domain.Repositories.EntityFrameworkCore; | ||||
| using Volo.Abp.EntityFrameworkCore; | ||||
|  | ||||
| namespace KonSoft.Admin.EntityFrameworkCore.Repositories | ||||
| { | ||||
|     public class ProductRepository : EfCoreRepository<AdminDbContext, Product>, IProductRepository | ||||
|     { | ||||
|         public ProductRepository(IDbContextProvider<AdminDbContext> dbContextProvider) : base(dbContextProvider) | ||||
|         { | ||||
|         } | ||||
|  | ||||
|         public async Task<List<Product>> GetPageRootListAsync(int skipCount, int maxResultCount, Expression<Func<Product, bool>> where) | ||||
|         { | ||||
|             var queryable = await GetQueryableAsync(); | ||||
|             return queryable.PageBy(skipCount, maxResultCount).Where(where).OrderBy(x => x.Order).ToList(); | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user