[]
        
(Showing Draft Content)

C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection

C1GoogleAnalyticsConnection Class

<xref href="C1.AdoNet.GoogleAnalytics.C1GoogleAnalyticsConnection" data-throw-if-not-resolved="false"></xref> represents a connection to a GoogleAnalytics server. 

The connection can be used to query the data hosted by the server or request modifications.

Namespace: C1.AdoNet.GoogleAnalytics
Assembly: C1.AdoNet.GoogleAnalytics.dll
Syntax
public sealed class C1GoogleAnalyticsConnection : C1ConnectionBase<C1GoogleAnalyticsConnection>, IComponent, IDbConnection, IDisposable, IAsyncDisposable

Constructors

Name Description
C1GoogleAnalyticsConnection()

Creates a new C1GoogleAnalyticsConnection instance.

C1GoogleAnalyticsConnection(C1GoogleAnalyticsConnectionStringBuilder)

Initialize a new C1GoogleAnalyticsConnection instance using the specified connection string expressed in a C1GoogleAnalyticsConnectionStringBuilder.

C1GoogleAnalyticsConnection(string)

Initialize a new C1GoogleAnalyticsConnection instance using the specified connection string.

Properties

Name Description
Credential

The credential for authorizing calls using OAuth 2.0.

DataSource

Gets the name of the database server to which to connect.

Database

Gets the name of the current database after a connection is opened, or the database name specified in the connection string before the connection is opened.

DbProviderFactory

Gets the DbProviderFactory for this connection.

KeyFile

The key file containing service account credentials in JSON format.

ServerVersion

Gets a string that represents the version of the server to which the object is connected.

Service

The service for account requests.

ViewId

The view id from which to retrieve data.

Methods

Name Description
BeginDbTransaction(IsolationLevel)

Begins a transaction on the connection.

ChangeDatabase(string)

Changes the current database for an open connection.

Close()

Closes the connection to the database. This is the preferred method of closing any open connection.

CreateDbCommand()

Creates and returns a DbCommand object associated with the current connection.

GetColumnsSchema(string[])

Retrieve the metadata relatively to the columns.

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.

GetTablesSchema(string[])

Retrieve the metadata relatively to the tables.

GetViewsSchema(string[])

Retrieve the metadata relatively to the views.

OnConnectionStringChanged()

A method that is executed everytime that the connection string used by this C1GoogleAnalyticsConnectionStringBuilder has changed.

Open()

Opens a database connection with the settings specified by the connection string.

OpenAsync(CancellationToken)

An asynchronous version of Open() open.