Mercurial > pub > bltoolkit
comparison Source/Data/DbConnectionFactory.cs @ 0:f990fcb411a9
Копия текущей версии из github
author | cin |
---|---|
date | Thu, 27 Mar 2014 21:46:09 +0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f990fcb411a9 |
---|---|
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 } |