Show / Hide Table of Contents

Interface IReaderStoredProcedure<TParameters, TResult1, TResult2>

Provides an interface to execute data reader stored procedures returning only 2 result sets.

Inherited Members
IRoutine.Command
Namespace: Paradigm.ORM.Data.StoredProcedures
Assembly: Paradigm.ORM.Data.dll
Syntax
public interface IReaderStoredProcedure<in TParameters, TResult1, TResult2> : IRoutine, IDisposable
Type Parameters
Name Description
TParameters

The type of the parameters.

TResult1

The type of the first result.

TResult2

The type of the second result.

Remarks

Instead of sending individual parameters to the procedure, the orm expects a type containing or referencing the mapping information, where individual parameters will be mapped to properties.

Methods

| Improve this Doc View Source

Execute(TParameters)

Executes the stored procedure and return a list of tuples.

Declaration
Tuple<List<TResult1>, List<TResult2>> Execute(TParameters parameters)
Parameters
Type Name Description
TParameters parameters

The parameters.

Returns
Type Description
Tuple<List<TResult1>, List<TResult2>>

List of tuples.

| Improve this Doc View Source

ExecuteAsync(TParameters)

Executes the stored procedure and return a list of tuples.

Declaration
Task<Tuple<List<TResult1>, List<TResult2>>> ExecuteAsync(TParameters parameters)
Parameters
Type Name Description
TParameters parameters

The parameters.

Returns
Type Description
Task<Tuple<List<TResult1>, List<TResult2>>>

List of tuples.

Extension Methods

ObjectExtensions.ThrowIfFails<TException>(Object, Action, String)
ObjectExtensions.ThrowIfFails<TException, TResult>(Object, Func<TResult>, String)
ObjectExtensions.ThrowIfFailsAsync<TException>(Object, Func<Task>, String)
ObjectExtensions.ThrowIfFailsAsync<TException, TResult>(Object, Func<Task<TResult>>, String)

See Also

IRoutine
  • Improve this Doc
  • View Source
Powered by MiracleDevs ©2017. Code licensed under the MIT License.
Documentation generated by DocFX.