Class EfCoreProjectRepository
Inheritance
EfCoreProjectRepository
Implements
Inherited Members
Namespace: Volo.Docs.Projects
Assembly: Volo.Docs.EntityFrameworkCore.dll
Syntax
public class EfCoreProjectRepository : EfCoreRepository<IDocsDbContext, Project, Guid>, IServiceProviderAccessor, IUnitOfWorkEnabled, IUnitOfWorkManagerAccessor, IEfCoreRepository<Project, Guid>, IEfCoreRepository<Project>, IRepository<Project, Guid>, IRepository<Project>, IReadOnlyRepository<Project, Guid>, IReadOnlyRepository<Project>, IBasicRepository<Project, Guid>, ISupportsExplicitLoading<Project>, IProjectRepository, IBasicRepository<Project, Guid>, IBasicRepository<Project>, IReadOnlyBasicRepository<Project, Guid>, IReadOnlyBasicRepository<Project>, IRepository
Constructors
EfCoreProjectRepository(IDbContextProvider<IDocsDbContext>)
Declaration
public EfCoreProjectRepository(IDbContextProvider<IDocsDbContext> dbContextProvider)
Parameters
Type | Name | Description |
---|---|---|
IDbContextProvider<IDocsDbContext> | dbContextProvider |
Methods
GetByShortNameAsync(string, CancellationToken)
Declaration
public virtual Task<Project> GetByShortNameAsync(string shortName, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | shortName | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<Project> |
GetListAsync(string, int, int, CancellationToken)
Declaration
public virtual Task<List<Project>> GetListAsync(string sorting, int maxResultCount, int skipCount, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | sorting | |
int | maxResultCount | |
int | skipCount | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<List<Project>> |
GetListWithoutDetailsAsync(CancellationToken)
Declaration
public virtual Task<List<ProjectWithoutDetails>> GetListWithoutDetailsAsync(CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<List<ProjectWithoutDetails>> |
ShortNameExistsAsync(string, CancellationToken)
Declaration
public virtual Task<bool> ShortNameExistsAsync(string shortName, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | shortName | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<bool> |