Interface ITagRepository
Inherited Members
Namespace: Volo.CmsKit.Tags
Assembly: Volo.CmsKit.Domain.dll
Syntax
public interface ITagRepository : IBasicRepository<Tag, Guid>, IBasicRepository<Tag>, IReadOnlyBasicRepository<Tag, Guid>, IReadOnlyBasicRepository<Tag>, IRepository
Methods
AnyAsync(string, string, CancellationToken)
Declaration
Task<bool> AnyAsync(string entityType, string name, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | entityType | |
| string | name | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<bool> |
FindAsync(string, string, CancellationToken)
Declaration
Task<Tag> FindAsync(string entityType, string name, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | entityType | |
| string | name | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<Tag> |
GetAllRelatedTagsAsync(string, string, CancellationToken)
Declaration
Task<List<Tag>> GetAllRelatedTagsAsync(string entityType, string entityId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | entityType | |
| string | entityId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<List<Tag>> |
GetAsync(string, string, CancellationToken)
Declaration
Task<Tag> GetAsync(string entityType, string name, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | entityType | |
| string | name | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<Tag> |
GetCountAsync(string, CancellationToken)
Declaration
Task<int> GetCountAsync(string filter, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filter | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<int> |
GetListAsync(string, int, int, string, CancellationToken)
Declaration
Task<List<Tag>> GetListAsync(string filter, int maxResultCount = 2147483647, int skipCount = 0, string sorting = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filter | |
| int | maxResultCount | |
| int | skipCount | |
| string | sorting | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<List<Tag>> |
GetPopularTagsAsync(string, int, CancellationToken)
Declaration
Task<List<PopularTag>> GetPopularTagsAsync(string entityType, int maxCount, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | entityType | |
| int | maxCount | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<List<PopularTag>> |