Database.QuoteIdentifier Method
Given an unquoted identifier in the correct catalog case, returns the correct quoted form of that identifier, including properly escaping any embedded quotes in the identifier.
Namespace: DbExtensions
Assembly: DbExtensions.dll
Syntax
public virtual string QuoteIdentifier(
string unquotedIdentifier
)
Parameters
unquotedIdentifier
Type: System.String
The original unquoted identifier.
Return Value
Type: String
The quoted version of the identifier. Embedded quotes within the identifier are properly escaped.