/// <summary> /// Initializes a new instance of the <see cref="KdbPlusCommand"/> class. /// </summary> /// <param name="commandText">The command text.</param> /// <param name="connection">The connection.</param> public KdbPlusCommand(string commandText, KdbPlusConnection connection) { Guard.ThrowIfNull(connection, "connection"); _commandText = commandText; _connection = connection; _parameters.ParametersChanged += ClearPreparedValues; }
/// <summary> /// Initializes a new instance of the <see cref="KdbPlusCommand"/> class. /// </summary> /// <param name="connection">The connection.</param> public KdbPlusCommand(KdbPlusConnection connection) : this(null, connection) { }