2 // System.Data.IDbExecutionContext.cs
5 // Tim Coleman (tim@timcoleman.com)
7 // Copyright (C) Tim Coleman, 2003
12 namespace System.Data {
13 public interface IDbExecutionContext
17 IDbConnection Connection { get; set; }
18 int ConnectionTimeOut { get; set; }
19 IDbTransaction Transaction { get; set; }
21 #endregion // Properties
25 IAsyncResult BeginExecuteNonQuery (AsyncCallback callback, object stateObject);
26 IAsyncResult BeginExecuteReader (AsyncCallback callback, object stateObject, CommandBehavior behavior);
27 IAsyncResult BeginExecuteScalar (AsyncCallback callback, object stateObject);
31 int EndExecuteNonQuery (IAsyncResult result);
32 IDataReader EndExecuteReader (IAsyncResult result);
33 object EndExecuteScalar (IAsyncResult result);
35 int ExecuteNonQuery ();
36 IDataReader ExecuteReader ();
37 IDataReader ExecuteReader (CommandBehavior behavior);
38 object ExecuteScalar ();