Exago .NET API Documentation
EntityTenant Constructor(EntityTenant)
Example 
WebReports.Api.Reports Namespace > EntityTenant Class > EntityTenant Constructor : EntityTenant Constructor(EntityTenant)

Create an EntityTenant object, passing it another EntityTenant object that describes the entity (data object), column name and parameter name required to do so.

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

Syntax
public EntityTenant( 
   EntityTenant other
)

Parameters

other
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