forked from ThatRendle/Simple.Data
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIAdapterWithFunctions.cs
More file actions
19 lines (18 loc) · 934 Bytes
/
IAdapterWithFunctions.cs
File metadata and controls
19 lines (18 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ResultSet = System.Collections.Generic.IEnumerable<System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, object>>>;
namespace Simple.Data
{
/// <summary>
/// Represents an Adapter which supports functions; for example, the Ado adapter supports this with Stored Procedures.
/// </summary>
/// <remarks>It may be possible to add functions to access data-store specific functionality (CreateIndex?) with this interface.</remarks>
public interface IAdapterWithFunctions
{
bool IsValidFunction(string functionName);
IEnumerable<ResultSet> Execute(string functionName, IDictionary<string, object> parameters);
IEnumerable<ResultSet> Execute(string functionName, IDictionary<string, object> parameters, IAdapterTransaction transaction);
}
}