SqlSettings class
namespace: Serenity.Data assembly: Serenity.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. Returns the local timeout if any is set through SetLocalCommandTimeout, otherwise the default timeout. The local timeout should be used for unit tests. |
| 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 SetLocalCommandTimeout(…) | Sets the local command timeout for the current thread and async context. Useful for background tasks, async methods, and testing to set the timeout locally and for auto spawned threads. |
| 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
- Source: SqlSettings.cs