public SqlProviderCommand(string cmdText, ISqlProviderConnection connection, ISqlProviderTransaction transaction)
 {
     this.connection  = connection;
     this.transaction = transaction;
     sqlCommand       = new SqlCommand(cmdText, connection.Connection as SqlConnection, transaction.Transaction as SqlTransaction);
     Parameters       = new SqlProviderParameterCollection(this);
 }
示例#2
0
 public SqlProxyConnection(string connection = "")
 {
     if (!string.IsNullOrEmpty(connection))
     {
         Connection = ProxyProviderLoader.CreateInstance <ISqlProviderConnection>("SqlProvider.SqlProviderConnection", connection);
     }
 }
示例#3
0
 public SqlProviderDataAdapter(string selectCommandText, ISqlProviderConnection selectConnection) => sqlDataAdapter = new SqlDataAdapter(selectCommandText, selectConnection.Connection as SqlConnection);
 public SqlProviderTransaction(ISqlProviderConnection connection, IDbTransaction isqlTransaction)
 {
     this.connection = connection;
     sqlTransaction  = isqlTransaction as SqlTransaction;
 }