Exago .NET API Documentation
Add(EntityColumnMetadata) Method
Example 
WebReports.Api.Reports Namespace > EntityColumnMetadataCollection Class > Add Method : Add(EntityColumnMetadata) Method
The EntityColumnMetadata object to add to the collection.
Add a new EntityColumnMetadata object to the collection of metadata objects for this Entity (Data Object).
Syntax

Parameters

columnMetadata
The EntityColumnMetadata object to add to the collection.
Example
Add column metadata for a column named "LastName" in the data source and add it to the configuration
employees.ColumnMetadatas.Add(new EntityColumnMetadata("LastName")
{
    ColumnType = "String",
    MnemonicName = "Last Name",
    IsVisible = ConditionalBoolean.True,
    IsSortable = ConditionalBoolean.False,
    IsFilterable = FilterableType.Static
});

api.SaveConfigToFile();
See Also

Reference

EntityColumnMetadataCollection Class
EntityColumnMetadataCollection Members
Overload List