DatabaseConfiguration Class
Holds configuration options that customize the behavior of Database. This class cannot be instantiated, to get an instance use the Configuration property.
Inheritance Hierarchy
System.Object
DbExtensions.DatabaseConfiguration
Namespace: DbExtensions
Assembly: DbExtensions.dll
Syntax
public sealed class DatabaseConfiguration
The DatabaseConfiguration type exposes the following members.
Properties
| Name | Description |
|---|---|
| CommandTimeout | Specifies a timeout to assign to commands. This setting is ignored if less or equal to -1. The default is -1. |
| DefaultComplexPropertySeparator | The default separator to use when mapping complex properties. The default value is null, which means no separator is used, unless an explicit separator is specified on ComplexPropertyAttribute.Separator. |
| EnableBatchCommands | true to execute batch commands when possible; otherwise, false. The default is true. |
| LastInsertIdCommand | Gets or sets the SQL command that returns the last identity value generated on the database. |
| Log | Specifies the destination to write the SQL query or command. |
| ParameterNameBuilder | Specifies a function that prepares a parameter name to be used on DbParameter.ParameterName. |
| ParameterPlaceholderBuilder | Specifies a function that builds a parameter placeholder to be used in SQL statements. |
| QuotePrefix | Gets or sets the beginning character or characters to use when specifying database objects (for example, tables or columns) whose names contain characters such as spaces or reserved tokens. |
| QuoteSuffix | Gets or sets the ending character or characters to use when specifying database objects (for example, tables or columns) whose names contain characters such as spaces or reserved tokens. |
| UseVersionMember | true to include version column check in SQL statements’ predicates; otherwise, false. The default is true. |