Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 /// <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)
 {
 }