Interface IReaderStoredProcedure<TParameters, TResult1, TResult2, TResult3, TResult4, TResult5>
Provides an interface to execute data reader stored procedures returning only 5 result sets.
Inherited Members
Namespace: Paradigm.ORM.Data.StoredProcedures
Assembly: Paradigm.ORM.Data.dll
Syntax
public interface IReaderStoredProcedure<in TParameters, TResult1, TResult2, TResult3, TResult4, TResult5> : 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. |
TResult3 | The type of the third result. |
TResult4 | The type of the fourth result. |
TResult5 | The type of the fifth result. |
Remarks
Instead of sending individual parameters to the procedure, the orm expects a
Methods
| Improve this Doc View SourceExecute(TParameters)
Executes the stored procedure and return a list of tuples.
Declaration
Tuple<List<TResult1>, List<TResult2>, List<TResult3>, List<TResult4>, List<TResult5>> Execute(TParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
TParameters | parameters | The parameters. |
Returns
Type | Description |
---|---|
Tuple<List<TResult1>, List<TResult2>, List<TResult3>, List<TResult4>, List<TResult5>> | List of tuples. |
ExecuteAsync(TParameters)
Executes the stored procedure and return a list of tuples.
Declaration
Task<Tuple<List<TResult1>, List<TResult2>, List<TResult3>, List<TResult4>, List<TResult5>>> ExecuteAsync(TParameters parameters)
Parameters
Type | Name | Description |
---|---|---|
TParameters | parameters | The parameters. |
Returns
Type | Description |
---|---|
Task<Tuple<List<TResult1>, List<TResult2>, List<TResult3>, List<TResult4>, List<TResult5>>> | List of tuples. |