2004-03-31 Juraj Skripsky <juraj@hotfeet.ch>
[mono.git] / mcs / class / System.Data / System.Data / IDbExecutionContext.cs
1 //
2 // System.Data.IDbExecutionContext.cs
3 //
4 // Author:
5 //   Tim Coleman (tim@timcoleman.com)
6 //
7 // Copyright (C) Tim Coleman, 2003
8 //
9
10 #if NET_1_2
11
12 namespace System.Data {
13         public interface IDbExecutionContext
14         {
15                 #region Properties
16
17                 IDbConnection Connection { get; set; }
18                 int ConnectionTimeOut { get; set; }
19                 IDbTransaction Transaction { get; set; }
20
21                 #endregion // Properties
22
23                 #region Methods
24
25                 IAsyncResult BeginExecuteNonQuery (AsyncCallback callback, object stateObject);
26                 IAsyncResult BeginExecuteReader (AsyncCallback callback, object stateObject, CommandBehavior behavior);
27                 IAsyncResult BeginExecuteScalar (AsyncCallback callback, object stateObject);
28
29                 void Cancel ();
30
31                 int EndExecuteNonQuery (IAsyncResult result);
32                 IDataReader EndExecuteReader (IAsyncResult result);
33                 object EndExecuteScalar (IAsyncResult result);
34
35                 int ExecuteNonQuery ();
36                 IDataReader ExecuteReader ();
37                 IDataReader ExecuteReader (CommandBehavior behavior);
38                 object ExecuteScalar ();
39
40                 #endregion // Methods
41         }
42 }
43
44 #endif // NET_1_2