TenantDataServices

TenantDataServices implements the data services for the TenantStore.TENANT table.

Namespace:
Inetdev.Multitenancy.DataModels
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
Inetdev.Data.DataServices

Constructors

TenantDataServices

Default constructor

Signature:
public Void TenantDataServices()

Properties

Alias

The alias for the underlaying table.

Signature:
public String Alias { get; set; }

Fields

A dictionary of field configuration for the underlaying table.

Signature:
public IDictionary<String, Field> Fields { get; set; }

Table

The name of the underlaying table.

Signature:
public String Table { get; set; }

Methods

FilterAsync

Filters tenants applying the first term (if any) to the name and display name column.

Signature:
public Task FilterAsync(listing)
Parameters
Name Type Summary
listing Listing<Tenant> Argument to filter tenants.
Exceptions
Type Summary
ArgumentNullException Thrown when listing is null.

GetProvisionedTenantByNameCaseInsensitive

Gets a provisioned tenant looking by it's name without considering the case.

Signature:
public Tenant GetProvisionedTenantByNameCaseInsensitive(name)
Returns

A provisioned tenant or null if the tenant does not exists or it is not provisioned.

Parameters
Name Type Summary
name String Tenant name to look for.

GetTenantById

Gets the tenant looking by it's ID.

Signature:
public Tenant GetTenantById(tenantId)
Returns

The tenant for the specified Id.

Parameters
Name Type Summary
tenantId Int32 Tenant Id to look for.

GetTenantByNameCaseInsensitive

Gets the tenant looking by it's name without considering the case.

Signature:
public Tenant GetTenantByNameCaseInsensitive(name)
Parameters
Name Type Summary
name String