Table of Contents

ExecuteCommand Method

Definition

Namespace
Cuemon.Data
Assemblies
Cuemon.Data.dll
Source
src/Cuemon.Data/DataManager.cs

ExecuteCommand<T>(DataStatement, Func<IDbCommand, T>)

Core method for executing methods on the IDbCommand interface resolved from the abstract GetDbCommand(DataStatement) method.

protected virtual T ExecuteCommand<T>(DataStatement statement, Func<IDbCommand, T> executeSelector)

Parameters

statement DataStatement

The command statement to execute.

executeSelector Func<IDbCommand, T>

The function delegate that will invoke a method on the resolved IDbCommand from the abstract GetDbCommand(DataStatement) method.

Returns

T

A value of T that is equal to the invoked method of the IDbCommand implementation.

Type Parameters

T

The type to return.