Quotes a name for being used as a aliasname
Namespace:
NHibernate.DialectAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Overridable Function QuoteForAliasName ( _ aliasName As String _ ) As String |
C# |
---|
public virtual string QuoteForAliasName( string aliasName ) |
Visual C++ |
---|
public: virtual String^ QuoteForAliasName( String^ aliasName ) |
JavaScript |
---|
function quoteForAliasName(aliasName); |
Parameters
- aliasName
- Type: System..::.String
Name of the alias
Return Value
A Quoted name in the format of OpenQuote + aliasName + CloseQuote
Remarks
Original implementation calls QuoteForTableName(String)
Remarks
If the aliasName is already enclosed in the OpenQuote and CloseQuote then this method will return the aliasName that was passed in without going through any Quoting process. So if aliasName is passed in already Quoted make sure that you have escaped all of the chars according to your DataBase's specifications.