Table of Contents

Class SyncSqlCommandExtensions

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

Blocking calls on a SqlCommand: they hold the calling thread until the work is done. Add using Open.Database.Extensions.Synchronous; to use them.

public static class SyncSqlCommandExtensions
Inheritance
SyncSqlCommandExtensions
Inherited Members

Methods

ExecuteReader(SqlCommand, Action<SqlDataReader>, CommandBehavior)

Executes the command and passes the SqlDataReader to the handler.

ExecuteReader<T>(SqlCommand, Func<SqlDataReader, T>, CommandBehavior)

Executes the command and passes the SqlDataReader to the transform function, returning its result.