Documentation
Table of Contents

Constructor SemanticDatabase

Namespace
IntentSharp.Data
Assembly
IntentSharp.dll

SemanticDatabase(IntentClient, DbConnection, DatabaseOptions?, ISchemaDiscovery?)

Creates the runtime over an existing connection. A closed connection is opened for each operation and closed again; an open one is left open. The connection is never disposed.

public SemanticDatabase(IntentClient client, DbConnection connection, DatabaseOptions? options = null, ISchemaDiscovery? discovery = null)

Parameters

client IntentClient

The client that plans statements.

connection DbConnection

The database connection.

options DatabaseOptions

What the runtime may do. Null uses the defaults: read-only, every discovered table, parameters required.

discovery ISchemaDiscovery

How the schema is read. Null uses AdoSchemaDiscovery.

Exceptions

ArgumentNullException

client or connection is null.