Edytuj

Udostępnij za pośrednictwem


IRelationalStorage Interface

Definition

A common interface for all relational databases.

public interface IRelationalStorage
type IRelationalStorage = interface
Public Interface IRelationalStorage
Derived

Properties

ConnectionString

The connection string used to connecto the database.

InvariantName

The well known invariant name of the underlying database.

Methods

ExecuteAsync(String, Action<IDbCommand>, CancellationToken, CommandBehavior)

Executes a given statement. Especially intended to use with INSERT, UPDATE, DELETE or DDL queries.

ReadAsync<TResult>(String, Action<IDbCommand>, Func<IDataRecord,Int32,CancellationToken,Task<TResult>>, CancellationToken, CommandBehavior)

Executes a given statement. Especially intended to use with SELECT statement.

Extension Methods

ExecuteAsync(IRelationalStorage, String, Object, CancellationToken)

Uses IRelationalStorage with ReflectionSelector<TResult>(IDataRecord).

ExecuteAsync(IRelationalStorage, String, CancellationToken)

Uses IRelationalStorage with ReflectionSelector<TResult>(IDataRecord).

ExecuteMultipleInsertIntoAsync<T>(IRelationalStorage, String, IEnumerable<T>, CancellationToken, IReadOnlyDictionary<String, String>, IEnumerable<String>, Boolean)

Executes a multi-record insert query clause with SELECT UNION ALL.

ReadAsync<TResult>(IRelationalStorage, String, Func<IDataRecord,TResult>, Action<IDbCommand>)

A simplified version of ReadAsync<TResult>(String, Action<IDbCommand>, Func<IDataRecord,Int32,CancellationToken,Task<TResult>>, CancellationToken, CommandBehavior)

ReadAsync<TResult>(IRelationalStorage, String, Object, CancellationToken)

Uses IRelationalStorage with ReflectionParameterProvider<T>(IDbCommand, T, IReadOnlyDictionary<String,String>).

ReadAsync<TResult>(IRelationalStorage, String, CancellationToken)

Uses IRelationalStorage with DbExtensions.ReflectionParameterProvider.

Applies to