Interface IOrganizationRepository
organization repository definition
Namespace: Simplic.TenantSystem
Assembly: Simplic.TenantSystem.dll
Syntax
public interface IOrganizationRepository
Methods
| Improve this Doc View SourceGetByName(String)
Get an organization by its name
Declaration
Organization GetByName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |
Returns
Type | Description |
---|---|
Organization | The tenant with the given name |
GetByUserId(Int32)
Get all assigned organizations
Declaration
IEnumerable<Organization> GetByUserId(int userId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | userId | Unique user id |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Organization> | All tenants that are enabled for the given user |
GetGroupsBySubOrganizationCount(Int32)
Gets all groups which have n sub items/tenants
Declaration
IEnumerable<Organization> GetGroupsBySubOrganizationCount(int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | count | Sub tenant count |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Organization> | Enumerable of organizations |