Documentation
Table of Contents

Class DatabaseOptions

Namespace
IntentSharp.Data
Assembly
IntentSharp.dll

Controls what the database runtime may do. Defaults are the safest setting for every option.

public sealed class DatabaseOptions
Inheritance
object
DatabaseOptions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Extension Methods

Constructors

DatabaseOptions()

Creates options with the safest settings, the default on each property: no writes, every discovered table, at most 1000 rows and parameters required.

Properties

AllowWrites

Permit INSERT, UPDATE, DELETE and MERGE. Off by default.

AllowedTables

Tables the model may reference. Null means every discovered table; an empty list means none.

CommandTimeout

Time limit for running one statement, applied as the command timeout in whole seconds. Fractions of a second are dropped, so a value under one second sets a command timeout of 0, which means no time limit. Default 30 seconds.

DryRun

Return the plan without executing it.

MaxRows

Rows returned per query. The result reports when the cap was hit.

RequireParameters

Reject statements that inline comparison values instead of using @parameters.

SchemaCacheDuration

Cache discovered schema for this long.

UseTransactionsForWrites

Wrap writes in a transaction and roll back on any error.