SqlFunctions.QuoteName Method
Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier.
Assembly: EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)
Name | Description | |
---|---|---|
![]() ![]() | QuoteName(String) | Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier. |
![]() ![]() | QuoteName(String, String) | Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier. |
SqlFunctions.QuoteName Method (String)
Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier.
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "stringArg")] [SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")] [DbFunctionAttribute("SqlServer", "QUOTENAME")] public static string QuoteName( string stringArg )
Parameters
- stringArg
-
Type:
System.String
The expression that quote characters will be added to.
SqlFunctions.QuoteName Method (String, String)
Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier.
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "quoteCharacter")] [SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId = "string")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "stringArg")] [DbFunctionAttribute("SqlServer", "QUOTENAME")] public static string QuoteName( string stringArg, string quoteCharacter )
Parameters
- stringArg
-
Type:
System.String
The expression that quote characters will be added to.
- quoteCharacter
-
Type:
System.String
The one-character string to use as the delimiter. It can be a single quotation mark ( ' ), a left or right bracket ( [ ] ), or a double quotation mark ( " ). If quote_character is not specified, brackets are used.