/
IReaderStoredProcedure.7.cs
31 lines (30 loc) · 1.7 KB
/
IReaderStoredProcedure.7.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
using System.Collections.Generic;
namespace Paradigm.ORM.Data.StoredProcedures
{
/// <summary>
/// Provides an interface to execute data reader stored procedures returning only 7 result sets.
/// </summary>
/// <remarks>
/// Instead of sending individual parameters to the procedure, the orm expects a <see cref="TParameters"/> type
/// containing or referencing the mapping information, where individual parameters will be mapped to properties.
/// </remarks>
/// <typeparam name="TParameters">The type of the parameters.</typeparam>
/// <typeparam name="TResult1">The type of the first result.</typeparam>
/// <typeparam name="TResult2">The type of the second result.</typeparam>
/// <typeparam name="TResult3">The type of the third result.</typeparam>
/// <typeparam name="TResult4">The type of the fourth result.</typeparam>
/// <typeparam name="TResult5">The type of the fifth result.</typeparam>
/// <typeparam name="TResult6">The type of the sixth result.</typeparam>
/// <typeparam name="TResult7">The type of the seventh result.</typeparam>
/// <seealso cref="Paradigm.ORM.Data.StoredProcedures.IRoutine" />
public partial interface IReaderStoredProcedure<in TParameters, TResult1, TResult2, TResult3, TResult4, TResult5, TResult6, TResult7> : IRoutine
{
/// <summary>
/// Executes the stored procedure and return a list of tuples.
/// </summary>
/// <param name="parameters">The parameters.</param>
/// <returns>List of tuples.</returns>
Tuple<List<TResult1>, List<TResult2>, List<TResult3>, List<TResult4>, List<TResult5>, List<TResult6>, List<TResult7>> Execute(TParameters parameters);
}
}