0
|
1 using BLToolkit.Data.DataProvider;
|
|
2
|
|
3 namespace BLToolkit.Data
|
|
4 {
|
|
5 public abstract class DbConnectionFactory : IDbConnectionFactory
|
|
6 {
|
|
7 public DataProviderBase Provider;
|
|
8 public string ConnectionString { get; set; }
|
|
9
|
|
10 #region IDbConnectionFactory Members
|
|
11
|
|
12 public DbManager CreateDbManager()
|
|
13 {
|
|
14 return CreateDbManager(Provider, ConnectionString);
|
|
15 }
|
|
16
|
|
17 public virtual DbManager CreateDbManager(DataProviderBase provider, string connectionString)
|
|
18 {
|
|
19 return new DbManager(provider, connectionString);
|
|
20 }
|
|
21
|
|
22 #endregion
|
|
23 }
|
|
24 } |