0
|
1 using System;
|
|
2 using System.Data;
|
|
3
|
|
4 namespace BLToolkit.Data.Linq
|
|
5 {
|
|
6 using Data.Sql.SqlProvider;
|
|
7 using Mapping;
|
|
8
|
|
9 public interface IDataContext : IMappingSchemaProvider, IDisposable
|
|
10 {
|
|
11 string ContextID { get; }
|
|
12 Func<ISqlProvider> CreateSqlProvider { get; }
|
|
13
|
|
14 object SetQuery (IQueryContext queryContext);
|
|
15 int ExecuteNonQuery (object query);
|
|
16 object ExecuteScalar (object query);
|
|
17 IDataReader ExecuteReader (object query);
|
|
18 void ReleaseQuery (object query);
|
|
19
|
|
20 string GetSqlText (object query);
|
|
21 IDataContext Clone (bool forNestedQuery);
|
|
22
|
|
23 event EventHandler OnClosing;
|
|
24 }
|
|
25 }
|