Edytuj

Udostępnij za pośrednictwem


RelationalStorage Class

Definition

A general purpose class to work with a given relational database and ADO.NET provider.

public class RelationalStorage : Orleans.SqlUtils.IRelationalStorage
type RelationalStorage = class
    interface IRelationalStorage
Public Class RelationalStorage
Implements IRelationalStorage
Inheritance
RelationalStorage
Implements

Properties

ConnectionString

The connection string used to connecto the database.

InvariantName

The invariant name of the connector for this database.

Methods

CreateInstance(String, String)

Creates an instance of a database of type IRelationalStorage.

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