IDataContextOptions.DelimitIdentifier Property
.NET Standard 2.x
Specifies whether to enclose the names of tables, columns, indexes, and constraints in double quotes when the SQL statement is generated.
Namespace: SnapObjects.Data
Assembly: SnapObjects.Data.dll
Syntax
bool DelimitIdentifier { get; set; }
Property Value
System.Boolean
Specifies whether to enclose table and column names in double quotes.
True
-- to use double quotes.
False
(default) -- not to use double quotes.
Remarks
This property influences:
- the generation of SQL statements; Raw SQL statements (e.g., non-PBSELECT statements in the DataWindow, and SQLBuildRaw used in SnapObjects programming) don't support the generation of
DelimitIdentifier
. TheDelimitIdentifier
used by SA varies, depending on the database types. For example,[]
is used for the SQLServer database type;""
for the Oracle and PostGreSql database types; and''
for the MySql and Sqlite database types. The default value for theDelimitIdentifier
property also varies across different database types.DelimitIdentifier
defaults totrue
for the SqlServer database type andfalse
for the Oracle, PostGreSql, MySql, and Sqlite database types. - the text in double quotes; Only for the SqlServer database type, SA will treat the text in double quotes as a string when the
DelimitIdentifier
property is set tofalse
.
Applies to
.NET Standard
2.x