Method AddTable
- Namespace
- ReportWright.Data.Metadata
- Assembly
- ReportWright.Data.Abstractions.dll
AddTable(QueryModel, DataSourceCatalog, string)
Adds a table, and the join from the catalog's foreign keys that links it to a table already in the query.
public static QueryJoin? AddTable(QueryModel model, DataSourceCatalog catalog, string table)
Parameters
modelQueryModelThe model.
catalogDataSourceCatalogThe catalog.
tablestringThe table's qualified name.
Returns
- QueryJoin
The join added, or null for the first table or when no foreign key links it (the author adds one).