Quotes a name.
Namespace: NHibernate.DialectAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
protected virtual string Quote( string name ) |
Visual Basic |
---|
Protected Overridable Function Quote ( _ name As String _ ) As String |
Visual C++ |
---|
protected: virtual String^ Quote( String^ name ) |
Parameters
- name
- Type: System..::..String
The string that needs to be Quoted.
Return Value
A QuotedNameRemarks
This method assumes that the name is not already Quoted. So if the name passed in is "name then it will return """name". It escapes the first char - the " with "" and encloses the escaped string with OpenQuote and CloseQuote.