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