Edytuj

Udostępnij za pośrednictwem


RelationalStorageExtensions Class

Definition

Convenienience functions to work with objects of type IRelationalStorage.

public static class RelationalStorageExtensions
type RelationalStorageExtensions = class
Public Module RelationalStorageExtensions
Inheritance
RelationalStorageExtensions

Methods

ExecuteAsync(IRelationalStorage, String, CancellationToken)

Uses IRelationalStorage with ReflectionSelector<TResult>(IDataRecord).

ExecuteAsync(IRelationalStorage, String, Object, 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.

GetStream(DbDataReader, Int32, IRelationalStorage)

Returns a native implementation of GetStream(Int32) for those providers which support it. Otherwise returns a chuncked read using GetBytes(Int32, Int64, Byte[], Int32, Int32).

ReadAsync<TResult>(IRelationalStorage, String, CancellationToken)

Uses IRelationalStorage with DbExtensions.ReflectionParameterProvider.

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>).

Applies to