Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 1.21 KB

SqlSettings.md

File metadata and controls

21 lines (15 loc) · 1.21 KB

SqlSettings class

namespace: Serenity.Data   assemblySerenity.Net.Data

Global SQL settings

public static class SqlSettings

Public Members

name description
static AutoQuotedIdentifiers { get; set; } Gets or sets a value indicating whether to automatically quote identifiers.
static DefaultCommandTimeout { get; set; } Gets or sets the default command timeout.
static DefaultDialect { get; set; } The default dialect, returns the local dialect if any set through SetLocal, the default dialect otherwise. This should be only set on application start. Local dialect should be used for unit tests.
static SetLocalDialect(…) Sets local dialect for current thread and async context. Useful for background tasks, async methods, and testing to set dialect locally and for auto spawned threads.

See Also