Quotes a name for being used as a columnname
Namespace: NHibernate.DialectAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public virtual string QuoteForColumnName( string columnName ) |
Visual Basic |
---|
Public Overridable Function QuoteForColumnName ( _ columnName As String _ ) As String |
Visual C++ |
---|
public: virtual String^ QuoteForColumnName( String^ columnName ) |
Parameters
- columnName
- Type: System..::..String
Name of the column
Return Value
A Quoted name in the format of OpenQuote + columnName + CloseQuoteRemarks
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.