Exago .NET API Documentation
EntityTenant Constructor(String,String,String)
Example 
WebReports.Api.Reports Namespace > EntityTenant Class > EntityTenant Constructor : EntityTenant Constructor(String,String,String)
The Alias of the Entity (Data Object) that this tenant column will be applied to. This can be accessed via the Entity.Name property.
The name of the column as it appears in the Data Source of the column that contains the tenant data.
The name of the Exago parameter that contains the value to match the colName with

Create an EntityTenant object, passing it the Alias property of the Entity (Data Object), the name of the column with the tenant data in it and the name of the Exago parameter that will be used to match the data in the tenant column.

Only those rows from entityName where the value in colName matches the value in the parameter parameterId will be made available in the report.

See Admin Console: Data Objects and Column-Based Tenancy for more information.

Syntax
public EntityTenant( 
   System.string entityName,
   System.string colName,
   System.string parameterId
)

Parameters

entityName
The Alias of the Entity (Data Object) that this tenant column will be applied to. This can be accessed via the Entity.Name property.
colName
The name of the column as it appears in the Data Source of the column that contains the tenant data.
parameterId
The name of the Exago parameter that contains the value to match the colName with
Example
Create column-based tenancy on the "Campaign Name" column in the entity (data object) given by myNewEntity.Name. When the "Campaign Name" column value matches "US Expo" those rows will be available to reports.
myNewEntity.Tenants.Add(new EntityTenant(myNewEntity.Name, "Campaign Name", "companyId"));
api.Parameters.GetParameter("companyId").Value = "US Expo";
See Also

Reference

EntityTenant Class
EntityTenant Members
Overload List

Exago Knowledge Base

Column-Based Tenancy
Data Objects