Interface IDocumentRepository
Assembly: Volo.Docs.Domain.dll
Syntax
public interface IDocumentRepository : IBasicRepository<Document>, IReadOnlyBasicRepository<Document>, IRepository
Methods
DeleteAsync(Guid, string, string, string, bool, CancellationToken)
Declaration
Task DeleteAsync(Guid projectId, string name, string languageCode, string version, bool autoSave = false, CancellationToken cancellationToken = default)
Parameters
Returns
FindAsync(Guid, List<string>, string, string, bool, CancellationToken)
Declaration
Task<Document> FindAsync(Guid projectId, List<string> possibleNames, string languageCode, string version, bool includeDetails = true, CancellationToken cancellationToken = default)
Parameters
Returns
FindAsync(Guid, string, string, string, bool, CancellationToken)
Declaration
Task<Document> FindAsync(Guid projectId, string name, string languageCode, string version, bool includeDetails = true, CancellationToken cancellationToken = default)
Parameters
Returns
GetAllAsync(Guid?, string, string, string, string, string, DateTime?, DateTime?, DateTime?, DateTime?, DateTime?, DateTime?, DateTime?, DateTime?, string, int, int, CancellationToken)
Declaration
Task<List<DocumentWithoutContent>> GetAllAsync(Guid? projectId, string name, string version, string languageCode, string fileName, string format, DateTime? creationTimeMin, DateTime? creationTimeMax, DateTime? lastUpdatedTimeMin, DateTime? lastUpdatedTimeMax, DateTime? lastSignificantUpdateTimeMin, DateTime? lastSignificantUpdateTimeMax, DateTime? lastCachedTimeMin, DateTime? lastCachedTimeMax, string sorting = null, int maxResultCount = 2147483647, int skipCount = 0, CancellationToken cancellationToken = default)
Parameters
Returns
GetAllCountAsync(Guid?, string, string, string, string, string, DateTime?, DateTime?, DateTime?, DateTime?, DateTime?, DateTime?, DateTime?, DateTime?, string, int, int, CancellationToken)
Declaration
Task<long> GetAllCountAsync(Guid? projectId, string name, string version, string languageCode, string fileName, string format, DateTime? creationTimeMin, DateTime? creationTimeMax, DateTime? lastUpdatedTimeMin, DateTime? lastUpdatedTimeMax, DateTime? lastSignificantUpdateTimeMin, DateTime? lastSignificantUpdateTimeMax, DateTime? lastCachedTimeMin, DateTime? lastCachedTimeMax, string sorting = null, int maxResultCount = 2147483647, int skipCount = 0, CancellationToken cancellationToken = default)
Parameters
Returns
GetAsync(Guid, CancellationToken)
Declaration
Task<Document> GetAsync(Guid id, CancellationToken cancellationToken = default)
Parameters
Returns
GetListAsync(Guid?, string, string, CancellationToken)
Declaration
Task<List<Document>> GetListAsync(Guid? projectId, string version, string name, CancellationToken cancellationToken = default)
Parameters
Returns
GetListByProjectId(Guid, CancellationToken)
Declaration
Task<List<Document>> GetListByProjectId(Guid projectId, CancellationToken cancellationToken = default)
Parameters
Returns
GetListWithoutDetailsByProjectId(Guid, CancellationToken)
Declaration
Task<List<DocumentWithoutDetails>> GetListWithoutDetailsByProjectId(Guid projectId, CancellationToken cancellationToken = default)
Parameters
Returns
GetUniqueDocumentCountByProjectIdAsync(Guid, CancellationToken)
Declaration
Task<long> GetUniqueDocumentCountByProjectIdAsync(Guid projectId, CancellationToken cancellationToken = default)
Parameters
Returns
GetUniqueDocumentsByProjectIdPagedAsync(Guid, int, int, CancellationToken)
Declaration
Task<List<Document>> GetUniqueDocumentsByProjectIdPagedAsync(Guid projectId, int skipCount, int maxResultCount, CancellationToken cancellationToken = default)
Parameters
Returns
GetUniqueListDocumentInfoAsync(CancellationToken)
Declaration
Task<List<DocumentInfo>> GetUniqueListDocumentInfoAsync(CancellationToken cancellationToken = default)
Parameters
Returns
UpdateProjectLastCachedTimeAsync(Guid, DateTime, CancellationToken)
Declaration
Task UpdateProjectLastCachedTimeAsync(Guid projectId, DateTime cachedTime, CancellationToken cancellationToken = default)
Parameters
Returns
Extension Methods