Class EfCorePlanRepository
Inheritance
EfCorePlanRepository
Implements
Inherited Members
Namespace: Volo.Payment.Plans
Assembly: Volo.Payment.EntityFrameworkCore.dll
Syntax
public class EfCorePlanRepository : EfCoreRepository<IPaymentDbContext, Plan, Guid>, IServiceProviderAccessor, IUnitOfWorkEnabled, IUnitOfWorkManagerAccessor, IEfCoreRepository<Plan, Guid>, IEfCoreRepository<Plan>, IRepository<Plan, Guid>, IRepository<Plan>, IReadOnlyRepository<Plan, Guid>, IReadOnlyRepository<Plan>, IBasicRepository<Plan, Guid>, ISupportsExplicitLoading<Plan>, IPlanRepository, IBasicRepository<Plan, Guid>, IBasicRepository<Plan>, IReadOnlyBasicRepository<Plan, Guid>, IReadOnlyBasicRepository<Plan>, IRepository
Constructors
EfCorePlanRepository(IDbContextProvider<IPaymentDbContext>)
Declaration
public EfCorePlanRepository(IDbContextProvider<IPaymentDbContext> dbContextProvider)
Parameters
Type | Name | Description |
---|---|---|
IDbContextProvider<IPaymentDbContext> | dbContextProvider |
Methods
CreateFilteredQuery(IQueryable<Plan>, string)
Declaration
protected virtual IQueryable<Plan> CreateFilteredQuery(IQueryable<Plan> queryable, string filter)
Parameters
Type | Name | Description |
---|---|---|
IQueryable<Plan> | queryable | |
string | filter |
Returns
Type | Description |
---|---|
IQueryable<Plan> |
DeleteGatewayPlanAsync(Guid, string)
Declaration
public virtual Task DeleteGatewayPlanAsync(Guid planId, string gateway)
Parameters
Type | Name | Description |
---|---|---|
Guid | planId | |
string | gateway |
Returns
Type | Description |
---|---|
Task |
GetFilteredCountAsync(string, CancellationToken)
Declaration
public virtual Task<int> GetFilteredCountAsync(string filter, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | filter | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<int> |
GetGatewayPlanAsync(Guid, string)
Declaration
public virtual Task<GatewayPlan> GetGatewayPlanAsync(Guid planId, string gateway)
Parameters
Type | Name | Description |
---|---|---|
Guid | planId | |
string | gateway |
Returns
Type | Description |
---|---|
Task<GatewayPlan> |
GetGatewayPlanCountAsync(Guid, string)
Declaration
public virtual Task<int> GetGatewayPlanCountAsync(Guid planId, string filter = null)
Parameters
Type | Name | Description |
---|---|---|
Guid | planId | |
string | filter |
Returns
Type | Description |
---|---|
Task<int> |
GetGatewayPlanPagedListAsync(Guid, int, int, string, string)
Declaration
public virtual Task<List<GatewayPlan>> GetGatewayPlanPagedListAsync(Guid planId, int skipCount, int maxResultCount, string sorting, string filter = null)
Parameters
Type | Name | Description |
---|---|---|
Guid | planId | |
int | skipCount | |
int | maxResultCount | |
string | sorting | |
string | filter |
Returns
Type | Description |
---|---|
Task<List<GatewayPlan>> |
GetManyAsync(Guid[])
Declaration
public virtual Task<List<Plan>> GetManyAsync(Guid[] ids)
Parameters
Type | Name | Description |
---|---|---|
Guid[] | ids |
Returns
Type | Description |
---|---|
Task<List<Plan>> |
GetPagedAndFilteredListAsync(int, int, string, string, bool, CancellationToken)
Declaration
public virtual Task<List<Plan>> GetPagedAndFilteredListAsync(int skipCount, int maxResultCount, string sorting, string filter, bool includeDetails = false, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
int | skipCount | |
int | maxResultCount | |
string | sorting | |
string | filter | |
bool | includeDetails | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<List<Plan>> |
InsertGatewayPlanAsync(GatewayPlan)
Declaration
public virtual Task InsertGatewayPlanAsync(GatewayPlan gatewayPlan)
Parameters
Type | Name | Description |
---|---|---|
GatewayPlan | gatewayPlan |
Returns
Type | Description |
---|---|
Task |
UpdateGatewayPlanAsync(GatewayPlan)
Declaration
public virtual Task UpdateGatewayPlanAsync(GatewayPlan gatewayPlan)
Parameters
Type | Name | Description |
---|---|---|
GatewayPlan | gatewayPlan |
Returns
Type | Description |
---|---|
Task |
WithDetailsAsync()
Declaration
public override Task<IQueryable<Plan>> WithDetailsAsync()
Returns
Type | Description |
---|---|
Task<IQueryable<Plan>> |
Overrides
Volo.Abp.Domain.Repositories.EntityFrameworkCore.EfCoreRepository<Volo.Payment.EntityFrameworkCore.IPaymentDbContext, Volo.Payment.Plans.Plan>.WithDetailsAsync()