Prepare method

InvalidOperationException
The command is in an invalid state. Either the ULCommand.Connection is missing or closed, the ULCommand.Transaction
value does not match the current transaction state of the connection, or the ULCommand.CommandText is invalid.