0
|
1 using System.Data;
|
|
2
|
|
3 namespace BLToolkit.Fluent.Test.MockDataBase
|
|
4 {
|
|
5 /// <summary>
|
|
6 /// IDbConnection
|
|
7 /// </summary>
|
|
8 public partial class MockDb : IDbConnection
|
|
9 {
|
|
10 private ConnectionState _state;
|
|
11
|
|
12 IDbTransaction IDbConnection.BeginTransaction(IsolationLevel il)
|
|
13 {
|
|
14 throw new System.NotImplementedException();
|
|
15 }
|
|
16
|
|
17 IDbTransaction IDbConnection.BeginTransaction()
|
|
18 {
|
|
19 throw new System.NotImplementedException();
|
|
20 }
|
|
21
|
|
22 void IDbConnection.ChangeDatabase(string databaseName)
|
|
23 {
|
|
24 throw new System.NotImplementedException();
|
|
25 }
|
|
26
|
|
27 void IDbConnection.Close()
|
|
28 {
|
|
29 _state = ConnectionState.Closed;
|
|
30 }
|
|
31
|
|
32 string IDbConnection.ConnectionString { get; set; }
|
|
33
|
|
34 int IDbConnection.ConnectionTimeout
|
|
35 {
|
|
36 get { throw new System.NotImplementedException(); }
|
|
37 }
|
|
38
|
|
39 IDbCommand IDbConnection.CreateCommand()
|
|
40 {
|
|
41 return new MockCommand(this);
|
|
42 }
|
|
43
|
|
44 string IDbConnection.Database
|
|
45 {
|
|
46 get { throw new System.NotImplementedException(); }
|
|
47 }
|
|
48
|
|
49 void IDbConnection.Open()
|
|
50 {
|
|
51 _state = ConnectionState.Open;
|
|
52 }
|
|
53
|
|
54 ConnectionState IDbConnection.State
|
|
55 {
|
|
56 get { return _state; }
|
|
57 }
|
|
58
|
|
59 void System.IDisposable.Dispose()
|
|
60 {
|
|
61 }
|
|
62 }
|
|
63 } |