AdoDataConnectionEscapeIdentifier Method

Escapes an identifier, e.g., a table or field name, using the common delimiter for the connected AdoDataConnection database type or the standard ANSI escaping delimiter, i.e., double-quotes, based on the useAnsiQuotes flag.

Definition

Namespace: Gemstone.Data
Assembly: Gemstone.Data (in Gemstone.Data.dll) Version: 1.0.128 -- Release Build+cb657b646daac3e9cc5384ff42ed4530df50eab1
public string EscapeIdentifier(
	string identifier,
	bool useAnsiQuotes = false
)

Parameters

identifier  String
Field name to escape.
useAnsiQuotes  Boolean  (Optional)
Force use of double-quote for identifier delimiter, per SQL-99 standard, regardless of database type.

Return Value

String
Escaped identifier name.

Exceptions

ArgumentExceptionidentifier value cannot be null, empty or whitespace.

See Also