Interface ITenantRepository
Assembly: Volo.Abp.TenantManagement.Domain.dll
Syntax
public interface ITenantRepository : IBasicRepository<Tenant, Guid>, IBasicRepository<Tenant>, IReadOnlyBasicRepository<Tenant, Guid>, IReadOnlyBasicRepository<Tenant>, IRepository
Methods
FindById(Guid, Boolean)
Declaration
Tenant FindById(Guid id, bool includeDetails = true)
Parameters
| Type |
Name |
Description |
| Guid |
id |
|
| System.Boolean |
includeDetails |
|
Returns
FindByName(String, Boolean)
Declaration
Tenant FindByName(string name, bool includeDetails = true)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
| System.Boolean |
includeDetails |
|
Returns
FindByNameAsync(String, Boolean, CancellationToken)
Declaration
Task<Tenant> FindByNameAsync(string name, bool includeDetails = true, CancellationToken cancellationToken = null)
Parameters
| Type |
Name |
Description |
| System.String |
name |
|
| System.Boolean |
includeDetails |
|
| CancellationToken |
cancellationToken |
|
Returns
GetCountAsync(String, CancellationToken)
Declaration
Task<long> GetCountAsync(string filter = null, CancellationToken cancellationToken = null)
Parameters
| Type |
Name |
Description |
| System.String |
filter |
|
| CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| Task<System.Int64> |
|
GetListAsync(String, Int32, Int32, String, Boolean, CancellationToken)
Declaration
Task<List<Tenant>> GetListAsync(string sorting = null, int maxResultCount = null, int skipCount = 0, string filter = null, bool includeDetails = false, CancellationToken cancellationToken = null)
Parameters
| Type |
Name |
Description |
| System.String |
sorting |
|
| System.Int32 |
maxResultCount |
|
| System.Int32 |
skipCount |
|
| System.String |
filter |
|
| System.Boolean |
includeDetails |
|
| CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| Task<List<Tenant>> |
|
Extension Methods