Show / Hide Table of Contents

Class EfCorePlanRepository

Inheritance
object
EfCorePlanRepository
Implements
IPlanRepository
IBasicRepository<Plan, Guid>
IBasicRepository<Plan>
IReadOnlyBasicRepository<Plan>
IRepository
IReadOnlyBasicRepository<Plan, Guid>
Namespace: Volo.Payment.Plans
Assembly: Volo.Payment.EntityFrameworkCore.dll
Syntax
public class EfCorePlanRepository : EfCoreRepository<IPaymentDbContext, Plan, Guid>, IPlanRepository, IBasicRepository<Plan, Guid>, IBasicRepository<Plan>, IReadOnlyBasicRepository<Plan>, IRepository, IReadOnlyBasicRepository<Plan, Guid>

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>>

Implements

IPlanRepository
Volo.Abp.Domain.Repositories.IBasicRepository<,>
Volo.Abp.Domain.Repositories.IBasicRepository<>
Volo.Abp.Domain.Repositories.IReadOnlyBasicRepository<>
Volo.Abp.Domain.Repositories.IRepository
Volo.Abp.Domain.Repositories.IReadOnlyBasicRepository<,>
In this article
Back to top Powered by Volosoft