Skip to content

SqlSettings class

namespace: Serenity.Data   assemblySerenity.Net.Services

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. This is used as a fallback if the dialect and DefaultDialect do not provide a value. Default is true.
static DefaultCommandTimeout { get; set; } Gets or sets the default command timeout.
static DefaultDialect { get; set; } Gets or sets the default dialect. Returns the local dialect if any is set through SetLocalDialect, otherwise the default dialect. This should only be set on application start. The local dialect should be used for unit tests.
static SetLocalDialect(…) Sets the local dialect for the current thread and async context. Useful for background tasks, async methods, and testing to set the dialect locally and for auto spawned threads.

See Also