Table of Contents

TLinqDataTable<T>.CreateNewDataTable Method

Override this method when inheriting from this class to return the correct object. To do so, you will need to create a constructor in your class with parameters (aTableName, aCreator, aOrigTable, aFilters), call the inherited constructor in this class with the same parameters, and then in this method create a new instance of your class with the above constructor.

Syntax

Namespace: FlexCel.Report

protected abstract VirtualDataTable CreateNewDataTable(String aTableName, VirtualDataTable aCreatedBy, IQueryable<T> aData, TLinqDataTable<T> aOrigTable, String[] aFilters)

Parameters

<-> Parameter Type Description
aTableName String Name for the new table.
aCreatedBy VirtualDataTable Table that created this table (via a filter, distinct, etc), or null if this table wasn't created from another VirtualDataTable.
aData IQueryable<T> Data for the table. Might be null if in a master detail relationship.
aOrigTable TLinqDataTable<T> Real table from where the data comes. We will use this to find the relationships.
aFilters String[] A string with all the filters that need to be applied to this table.

Returns

A new instance of the class.

See also