Class EntityTagManager
Inheritance
EntityTagManager
Assembly: Volo.CmsKit.Domain.dll
public class EntityTagManager : DomainService, IDomainService, ITransientDependency
Constructors
Declaration
public EntityTagManager(IEntityTagRepository entityTagRepository, ITagRepository tagRepository, ITagDefinitionStore tagDefinitionStore, TagManager tagManager)
Parameters
Properties
Declaration
protected IEntityTagRepository EntityTagRepository { get; }
Property Value
Declaration
protected ITagDefinitionStore TagDefinitionStore { get; }
Property Value
Declaration
protected TagManager TagManager { get; }
Property Value
Declaration
protected ITagRepository TagRepository { get; }
Property Value
Methods
Declaration
public virtual Task<EntityTag> AddTagToEntityAsync(Guid tagId, string entityType, string entityId, Guid? tenantId = null, CancellationToken cancellationToken = default)
Parameters
Returns
Declaration
public Task<List<string>> GetEntityIdsFilteredByTagAsync(Guid tagId, Guid? tenantId, CancellationToken cancellationToken = default)
Parameters
Returns
Declaration
public Task<List<string>> GetEntityIdsFilteredByTagNameAsync(string tagName, string entityType, Guid? tenantId, CancellationToken cancellationToken = default)
Parameters
Returns
Declaration
public virtual Task RemoveTagFromEntityAsync(Guid tagId, string entityType, string entityId, Guid? tenantId = null, CancellationToken cancellationToken = default)
Parameters
Returns
Declaration
public Task SetEntityTagsAsync(string entityType, string entityId, List<string> tags)
Parameters
Returns
Implements
Extension Methods