Quotes a name for being used as a columnname

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

Syntax

Visual Basic (Declaration)
Public Overridable Function QuoteForColumnName ( _
	columnName As String _
) As String
C#
public virtual string QuoteForColumnName(
	string columnName
)
Visual C++
public:
virtual String^ QuoteForColumnName(
	String^ columnName
)
JavaScript
function quoteForColumnName(columnName);

Parameters

columnName
Type: System..::.String
Name of the column

Return Value

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

Remarks

Original implementation calls QuoteForTableName(String)

Remarks

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

See Also