Quotes a name for being used as a tablename

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

Syntax

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

Parameters

tableName
Type: System..::..String
Name of the table

Return Value

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

Remarks

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

See Also