public global::System.Data.SqlClient.SqlCommand BuildCommand(global::System.Data.SqlClient.SqlTransaction transaction) { var command = new global::System.Data.SqlClient.SqlCommand(); this.BuildCommand(command, transaction); return(command); }
public void BuildCommand( global::System.Data.SqlClient.SqlCommand command, global::System.Data.SqlClient.SqlTransaction transaction) { if (ReferenceEquals(command, null)) { throw new global::System.ArgumentNullException(nameof(command)); } if (ReferenceEquals(transaction, null)) { throw new global::System.ArgumentNullException(nameof(transaction)); } this.BuildCommand(command); command.Connection = transaction.Connection; command.Transaction = transaction; }