Esempio n. 1
0
 public BeanApi(DbConnection connection)
 {
     _connectionContainer = new ConnectionContainer.SimpleImpl(connection);
 }
Esempio n. 2
0
 public BeanApi(string connectionString, Type connectionType)
 {
     _connectionContainer = new ConnectionContainer.LazyImpl(connectionString, delegate() {
         return((DbConnection)Activator.CreateInstance(connectionType));
     });
 }
Esempio n. 3
0
 public BeanApi(string connectionString, DbProviderFactory factory)
 {
     _connectionContainer = new ConnectionContainer.LazyImpl(connectionString, factory.CreateConnection);
 }