Quotes a name for being used as a schemaname

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

Syntax

C#
public virtual string QuoteForSchemaName(
	string schemaName
)
Visual Basic
Public Overridable Function QuoteForSchemaName ( _
	schemaName As String _
) As String
Visual C++
public:
virtual String^ QuoteForSchemaName(
	String^ schemaName
)

Parameters

schemaName
Type: System..::..String
Name of the schema

Return Value

A Quoted name in the format of OpenQuote + schemaName + CloseQuote

Remarks

If the schemaName is already enclosed in the OpenQuote and CloseQuote then this method will return the schemaName that was passed in without going through any Quoting process. So if schemaName is passed in already Quoted make sure that you have escaped all of the chars according to your DataBase's specifications.

See Also