Table of Contents

Class SyncCommandExtensions

Namespace
Open.Database.Extensions.Synchronous
Assembly
Open.Database.Extensions.Core.dll

Blocking extensions on an IDbCommand, which hold the calling thread until the work is done.

public static class SyncCommandExtensions
Inheritance
SyncCommandExtensions
Inherited Members

Remarks

Add using Open.Database.Extensions.Synchronous; to use them.

Methods

ExecuteReader(IDbCommand, Action<IDataReader>, CommandBehavior)

Executes a reader and passes it to a handler.

ExecuteReader<T>(IDbCommand, Func<IDataReader, T>, CommandBehavior)

Executes a reader and returns the result of a transform function applied to it.

ToDataTable(IDbCommand, CommandBehavior)

Executes a reader and loads its first result set into a DataTable.

ToDataTables(IDbCommand, CommandBehavior)

Executes a reader and loads each result set into its own DataTable.