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); }
public SqlProxyConnection(string connection = "") { if (!string.IsNullOrEmpty(connection)) { Connection = ProxyProviderLoader.CreateInstance <ISqlProviderConnection>("SqlProvider.SqlProviderConnection", connection); } }
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; }