public RemoteSqlParameterClient(IRemoteSqlParameter parameter, ParameterId parameterId, CommandId commandId) { if (parameter == null) { throw new ArgumentNullException(nameof(parameter)); } _parameter = parameter; ParameterId = parameterId; CommandId = commandId; }
public RemoteSqlCommandClient( IRemoteSqlConnection connection, IRemoteSqlCommand command, IRemoteSqlTransaction transaction, IRemoteSqlParameterSet parameters, IRemoteSqlParameter parameter, IRemoteSqlDataReader reader, CommandId commandId) { if (connection == null) { throw new ArgumentNullException(nameof(connection)); } if (command == null) { throw new ArgumentNullException(nameof(command)); } if (transaction == null) { throw new ArgumentNullException(nameof(transaction)); } if (parameters == null) { throw new ArgumentNullException(nameof(parameters)); } if (parameter == null) { throw new ArgumentNullException(nameof(parameter)); } if (reader == null) { throw new ArgumentNullException(nameof(reader)); } _connection = connection; _command = command; _transaction = transaction; _commandId = commandId; _parameters = parameters; _parameter = parameter; _reader = reader; Parameters = new RemoteSqlParameterSetClient(command, parameters, parameter, commandId); _disposed = false; }
public RemoteSqlParameterSetClient(IRemoteSqlCommand command, IRemoteSqlParameterSet parameters, IRemoteSqlParameter parameter, CommandId commandId) { if (command == null) { throw new ArgumentNullException(nameof(command)); } if (parameters == null) { throw new ArgumentNullException(nameof(parameters)); } if (parameter == null) { throw new ArgumentNullException(nameof(parameter)); } _command = command; _parameters = parameters; _parameter = parameter; _commandId = commandId; SyncRoot = new object(); }