Class MongoEntityTagRepository
Inheritance
MongoEntityTagRepository
Implements
Inherited Members
Namespace: Volo.CmsKit.MongoDB.Tags
Assembly: Volo.CmsKit.MongoDB.dll
Syntax
public class MongoEntityTagRepository : MongoDbRepository<ICmsKitMongoDbContext, EntityTag>, IServiceProviderAccessor, IUnitOfWorkEnabled, IUnitOfWorkManagerAccessor, IMongoDbRepository<EntityTag>, IRepository<EntityTag>, IReadOnlyRepository<EntityTag>, IBasicRepository<EntityTag>, IEntityTagRepository, IBasicRepository<EntityTag>, IReadOnlyBasicRepository<EntityTag>, IRepository
Constructors
MongoEntityTagRepository(IMongoDbContextProvider<ICmsKitMongoDbContext>)
Declaration
public MongoEntityTagRepository(IMongoDbContextProvider<ICmsKitMongoDbContext> dbContextProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| IMongoDbContextProvider<ICmsKitMongoDbContext> | dbContextProvider |
Methods
DeleteManyAsync(Guid[], string, CancellationToken)
Declaration
public virtual Task DeleteManyAsync(Guid[] tagIds, string entityId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid[] | tagIds | |
| string | entityId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
FindAsync(Guid, string, Guid?, CancellationToken)
Declaration
public virtual Task<EntityTag> FindAsync(Guid tagId, string entityId, Guid? tenantId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | tagId | |
| string | entityId | |
| Guid? | tenantId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<EntityTag> |
GetEntityIdsFilteredByTagAsync(Guid, Guid?, CancellationToken)
Declaration
public virtual Task<List<string>> GetEntityIdsFilteredByTagAsync(Guid tagId, Guid? tenantId, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Guid | tagId | |
| Guid? | tenantId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<List<string>> |
GetEntityIdsFilteredByTagNameAsync(string, string, Guid?, CancellationToken)
Declaration
public virtual Task<List<string>> GetEntityIdsFilteredByTagNameAsync(string tagName, string entityType, Guid? tenantId = null, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | tagName | |
| string | entityType | |
| Guid? | tenantId | |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<List<string>> |