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
Public property CommandTimeout Specifies a timeout to assign to commands. This setting is ignored if less or equal to -1. The default is -1.
Public property 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 Separator.
Public propertyStatic member DefaultConnectionString The connection string to use as default.
Public propertyStatic member DefaultProviderInvariantName The provider’s invariant name to use as default.
Public property EnableBatchCommands true to execute batch commands when possible; otherwise, false. The default is true.
Public property LastInsertIdCommand Gets or sets the SQL command that returns the last identity value generated on the database.
Public property Log Specifies the destination to write the SQL query or command.
Public property ParameterNameBuilder Specifies a function that prepares a parameter name to be used on ParameterName.
Public property ParameterPlaceholderBuilder Specifies a function that builds a parameter placeholder to be used in SQL statements.
Public property 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.
Public property 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.
Public property UseVersionMember true to include version column check in SQL statements’ predicates; otherwise, false. The default is true.

See Also

Reference

DbExtensions Namespace

© Max Toro Q.