Parse SQL in sql and create a SqlString representing it.

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

Syntax

C#
public static SqlString Parse(
	string sql
)
Visual Basic
Public Shared Function Parse ( _
	sql As String _
) As SqlString
Visual C++
public:
static SqlString^ Parse(
	String^ sql
)

Parameters

sql
Type: System..::..String

[Missing <param name="sql"/> documentation for "M:NHibernate.SqlCommand.SqlString.Parse(System.String)"]

Return Value

[Missing <returns> documentation for "M:NHibernate.SqlCommand.SqlString.Parse(System.String)"]

Remarks

Parameter marks in single quotes will be correctly skipped, but otherwise the lexer is very simple and will not parse double quotes or escape sequences correctly, for example.

See Also