0
|
1 using System;
|
|
2 using System.ServiceModel;
|
|
3
|
|
4 namespace BLToolkit.ServiceModel.Async
|
|
5 {
|
|
6 [ServiceContract]
|
|
7 [ServiceKnownType(typeof(LinqServiceQuery))]
|
|
8 [ServiceKnownType(typeof(LinqServiceResult))]
|
|
9 public interface ILinqService
|
|
10 {
|
|
11 [OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ILinqService/GetSqlProviderType", ReplyAction = "http://tempuri.org/ILinqService/GetSqlProviderTypeResponse")]
|
|
12 IAsyncResult BeginGetSqlProviderType(AsyncCallback callback, object asyncState);
|
|
13
|
|
14 string EndGetSqlProviderType(IAsyncResult result);
|
|
15
|
|
16 [OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ILinqService/ExecuteNonQuery", ReplyAction = "http://tempuri.org/ILinqService/ExecuteNonQueryResponse")]
|
|
17 IAsyncResult BeginExecuteNonQuery(string queryData, AsyncCallback callback, object asyncState);
|
|
18
|
|
19 int EndExecuteNonQuery(IAsyncResult result);
|
|
20
|
|
21 [OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ILinqService/ExecuteScalar", ReplyAction = "http://tempuri.org/ILinqService/ExecuteScalarResponse")]
|
|
22 IAsyncResult BeginExecuteScalar(string queryData, AsyncCallback callback, object asyncState);
|
|
23
|
|
24 object EndExecuteScalar(IAsyncResult result);
|
|
25
|
|
26 [OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ILinqService/ExecuteReader", ReplyAction = "http://tempuri.org/ILinqService/ExecuteReaderResponse")]
|
|
27 IAsyncResult BeginExecuteReader(string queryData, AsyncCallback callback, object asyncState);
|
|
28
|
|
29 string EndExecuteReader(IAsyncResult result);
|
|
30
|
|
31 [OperationContract(AsyncPattern = true, Action = "http://tempuri.org/ILinqService/ExecuteBatch", ReplyAction = "http://tempuri.org/ILinqService/ExecuteBatchResponse")]
|
|
32 IAsyncResult BeginExecuteBatch(string queryData, AsyncCallback callback, object asyncState);
|
|
33
|
|
34 int EndExecuteBatch(IAsyncResult result);
|
|
35 }
|
|
36 }
|