Method ToCommandText
- Namespace
- ReportWright.Data.Metadata
- Assembly
- ReportWright.Data.Abstractions.dll
ToCommandText(QueryModel, DataSourceCatalog)
The query text: Transact-SQL for a database, the file name for a file source.
public static string ToCommandText(QueryModel model, DataSourceCatalog catalog)
Parameters
modelQueryModelThe model.
catalogDataSourceCatalogThe catalog.
Returns
- string
The text.
Exceptions
- ArgumentException
The model does not make a query (see Validate(QueryModel, DataSourceCatalog)).