Пример #1
0
        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);
        }
Пример #2
0
 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;
 }