[]
        
(Showing Draft Content)

C1.DataConnector.AdoNet.C1ConnectionBase

C1ConnectionBase Class

The connection base class for all C1DataConnector.AdoNet providers

Namespace: C1.DataConnector.AdoNet
Assembly: C1.AdoNet.QuickBooksOnline.dll
Syntax
public abstract class C1ConnectionBase : DbConnection, IComponent, IDbConnection, IDisposable, IAsyncDisposable

Constructors

Name Description
C1ConnectionBase(C1ConnectionStringBuilder, ILogger)

Initializes a C1ConnectionBase considering a connection string builder and a logger

Properties

Name Description
ConnectionString

Gets or sets the string used to open the connection.

ConnectionStringBuilder

Get the C1ConnectionStringBuilder used by this connection to express its connection string

Key

A string that identifies a unique way to connect to a server.

Logger

The logger where the runtime messages are passed to.

MaxPageSize

The maximum items returned per request to server

State

Gets a string that describes the state of the connection.

Methods

Name Description
Close()

Closes the connection to the database.

Dispose(bool)

Disposes the resources of this connection.

GetColumnsSchema(string[])

Retrieve the metadata relatively to the columns.

GetDataSourceInformationSchema()

Retrieve the metadata relatively to the dataSource informations.

GetForeignKeySchema(string[])

Retrieve the metadata relatively to the foreign keys.

GetIndexColumns(string[])

Retrieve the metadata relatively to the index columns.

GetIndexesSchema(string[])

Retrieve the metadata relatively to the indexes.

GetPrimaryKeySchema(string[])

Retrieve the metadata relatively to the primary keys.

GetReservedWordsSchema()

Retrieve the metadata relatively to the reserved words.

GetSchema()

Returns schema information for the data source of this C1ConnectionBase.

GetSchema(string)

Returns schema information for the data source of this C1ConnectionBase using the specified string for the schema name.

GetSchema(string, string[])

Returns schema information for the data source of this C1ConnectionBase using the specified string for the schema name and the specified string array for the restriction values.

GetSubTableSchema(string[])

Retrieve the metadata relatively to the subtables.

GetTablesSchema(string[])

Retrieve the metadata relatively to the tables.

GetViewsSchema(string[])

Retrieve the metadata relatively to the views.

OnConnectionStringChanged()

A method that is called every time there is a change to the connection string used by this C1.AdoNet.OData.C1ODataConnection/>.

OpenAsync(CancellationToken)

An asynchronous version of C1.DataConnector.AdoNet.C1ConnectionBase.Open

SetConnectionState(ConnectionState)

If the passed state is different than the current one, it updates it and fires the StateChange event.