Table of Contents

Class DataReaderAsync

Namespace
LinqToDB.Data
Assembly
linq2db.dll
public class DataReaderAsync : IDisposable
Inheritance
DataReaderAsync
Implements
Extension Methods

Constructors

DataReaderAsync(CommandInfo, DataReaderWrapper)

public DataReaderAsync(CommandInfo commandInfo, DataReaderWrapper dataReader)

Parameters

commandInfo CommandInfo
dataReader DataReaderWrapper

Properties

CommandInfo

public CommandInfo? CommandInfo { get; }

Property Value

CommandInfo

Reader

public DbDataReader? Reader { get; }

Property Value

DbDataReader

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

DisposeAsync()

public Task DisposeAsync()

Returns

Task

ExecuteForEachAsync<T>()

public Task<T> ExecuteForEachAsync<T>()

Returns

Task<T>

Type Parameters

T

ExecuteForEachAsync<T>(CancellationToken)

public Task<T> ExecuteForEachAsync<T>(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task<T>

Type Parameters

T

QueryForEachAsync<T>(Action<T>)

public Task QueryForEachAsync<T>(Action<T> action)

Parameters

action Action<T>

Returns

Task

Type Parameters

T

QueryForEachAsync<T>(Action<T>, CancellationToken)

public Task QueryForEachAsync<T>(Action<T> action, CancellationToken cancellationToken)

Parameters

action Action<T>
cancellationToken CancellationToken

Returns

Task

Type Parameters

T

QueryForEachAsync<T>(Func<DbDataReader, T>, Action<T>)

public Task QueryForEachAsync<T>(Func<DbDataReader, T> objectReader, Action<T> action)

Parameters

objectReader Func<DbDataReader, T>
action Action<T>

Returns

Task

Type Parameters

T

QueryForEachAsync<T>(Func<DbDataReader, T>, Action<T>, CancellationToken)

public Task QueryForEachAsync<T>(Func<DbDataReader, T> objectReader, Action<T> action, CancellationToken cancellationToken)

Parameters

objectReader Func<DbDataReader, T>
action Action<T>
cancellationToken CancellationToken

Returns

Task

Type Parameters

T

QueryForEachAsync<T>(T, Action<T>)

public Task QueryForEachAsync<T>(T template, Action<T> action)

Parameters

template T
action Action<T>

Returns

Task

Type Parameters

T

QueryForEachAsync<T>(T, Action<T>, CancellationToken)

public Task QueryForEachAsync<T>(T template, Action<T> action, CancellationToken cancellationToken)

Parameters

template T
action Action<T>
cancellationToken CancellationToken

Returns

Task

Type Parameters

T

QueryToArrayAsync<T>()

public Task<T[]> QueryToArrayAsync<T>()

Returns

Task<T[]>

Type Parameters

T

QueryToArrayAsync<T>(Func<DbDataReader, T>)

public Task<T[]> QueryToArrayAsync<T>(Func<DbDataReader, T> objectReader)

Parameters

objectReader Func<DbDataReader, T>

Returns

Task<T[]>

Type Parameters

T

QueryToArrayAsync<T>(Func<DbDataReader, T>, CancellationToken)

public Task<T[]> QueryToArrayAsync<T>(Func<DbDataReader, T> objectReader, CancellationToken cancellationToken)

Parameters

objectReader Func<DbDataReader, T>
cancellationToken CancellationToken

Returns

Task<T[]>

Type Parameters

T

QueryToArrayAsync<T>(CancellationToken)

public Task<T[]> QueryToArrayAsync<T>(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task<T[]>

Type Parameters

T

QueryToArrayAsync<T>(T)

public Task<T[]> QueryToArrayAsync<T>(T template)

Parameters

template T

Returns

Task<T[]>

Type Parameters

T

QueryToArrayAsync<T>(T, CancellationToken)

public Task<T[]> QueryToArrayAsync<T>(T template, CancellationToken cancellationToken)

Parameters

template T
cancellationToken CancellationToken

Returns

Task<T[]>

Type Parameters

T

QueryToListAsync<T>()

public Task<List<T>> QueryToListAsync<T>()

Returns

Task<List<T>>

Type Parameters

T

QueryToListAsync<T>(Func<DbDataReader, T>)

public Task<List<T>> QueryToListAsync<T>(Func<DbDataReader, T> objectReader)

Parameters

objectReader Func<DbDataReader, T>

Returns

Task<List<T>>

Type Parameters

T

QueryToListAsync<T>(Func<DbDataReader, T>, CancellationToken)

public Task<List<T>> QueryToListAsync<T>(Func<DbDataReader, T> objectReader, CancellationToken cancellationToken)

Parameters

objectReader Func<DbDataReader, T>
cancellationToken CancellationToken

Returns

Task<List<T>>

Type Parameters

T

QueryToListAsync<T>(CancellationToken)

public Task<List<T>> QueryToListAsync<T>(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task<List<T>>

Type Parameters

T

QueryToListAsync<T>(T)

public Task<List<T>> QueryToListAsync<T>(T template)

Parameters

template T

Returns

Task<List<T>>

Type Parameters

T

QueryToListAsync<T>(T, CancellationToken)

public Task<List<T>> QueryToListAsync<T>(T template, CancellationToken cancellationToken)

Parameters

template T
cancellationToken CancellationToken

Returns

Task<List<T>>

Type Parameters

T