Table of Contents

Interface ITenantSubModuleRepository

Namespace
KadicAuth.Application.TenantSubModules.Abstractions
Assembly
KadicAuth.Application.dll
public interface ITenantSubModuleRepository

Methods

AddAsync(TenantSubModule, CancellationToken)

Task AddAsync(TenantSubModule tenantSubModule, CancellationToken cancellationToken = default)

Parameters

tenantSubModule TenantSubModule
cancellationToken CancellationToken

Returns

Task

AddRangeAsync(IEnumerable<TenantSubModule>, CancellationToken)

Task AddRangeAsync(IEnumerable<TenantSubModule> tenantSubModules, CancellationToken cancellationToken = default)

Parameters

tenantSubModules IEnumerable<TenantSubModule>
cancellationToken CancellationToken

Returns

Task

DeleteAsync(TenantSubModule, CancellationToken)

Task DeleteAsync(TenantSubModule tenantSubModule, CancellationToken cancellationToken = default)

Parameters

tenantSubModule TenantSubModule
cancellationToken CancellationToken

Returns

Task

ExistsAsync(Guid, Guid, CancellationToken)

Task<bool> ExistsAsync(Guid tenantId, Guid subModuleId, CancellationToken cancellationToken = default)

Parameters

tenantId Guid
subModuleId Guid
cancellationToken CancellationToken

Returns

Task<bool>

GetActiveByTenantIdAsync(Guid, CancellationToken)

Task<IEnumerable<TenantSubModule>> GetActiveByTenantIdAsync(Guid tenantId, CancellationToken cancellationToken = default)

Parameters

tenantId Guid
cancellationToken CancellationToken

Returns

Task<IEnumerable<TenantSubModule>>

GetByIdAsync(Guid, CancellationToken)

Task<TenantSubModule?> GetByIdAsync(Guid id, CancellationToken cancellationToken = default)

Parameters

id Guid
cancellationToken CancellationToken

Returns

Task<TenantSubModule>

GetByTenantAndSubModuleAsync(Guid, Guid, CancellationToken)

Task<TenantSubModule?> GetByTenantAndSubModuleAsync(Guid tenantId, Guid subModuleId, CancellationToken cancellationToken = default)

Parameters

tenantId Guid
subModuleId Guid
cancellationToken CancellationToken

Returns

Task<TenantSubModule>

GetByTenantIdAsync(Guid, CancellationToken)

Task<IEnumerable<TenantSubModule>> GetByTenantIdAsync(Guid tenantId, CancellationToken cancellationToken = default)

Parameters

tenantId Guid
cancellationToken CancellationToken

Returns

Task<IEnumerable<TenantSubModule>>

SaveChangesAsync(CancellationToken)

Task SaveChangesAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task

UpdateAsync(TenantSubModule, CancellationToken)

Task UpdateAsync(TenantSubModule tenantSubModule, CancellationToken cancellationToken = default)

Parameters

tenantSubModule TenantSubModule
cancellationToken CancellationToken

Returns

Task