Returns the SqlString in a string where it looks like SELECT col1, col2 FROM table WHERE col1 = ?

Namespace: NHibernate.SqlCommand
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public override string ToString()
Visual Basic
Public Overrides Function ToString As String
Visual C++
public:
virtual String^ ToString() override

Return Value

A provider-neutral version of the CommandText

Remarks

The question mark is used as the indicator of a parameter because at this point we are not using the specific provider so we don't know how that provider wants our parameters formatted.

See Also