Table of Contents

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

model QueryModel

The model.

catalog DataSourceCatalog

The catalog.

Returns

string

The text.

Exceptions

ArgumentException

The model does not make a query (see Validate(QueryModel, DataSourceCatalog)).