WrappedConnection.CreateCommand method
namespace: Serenity.Data assembly: Serenity.Net.Data
Creates and returns a Command object associated with the connection.
public IDbCommand CreateCommand()
Return Value
A Command object associated with the connection.
Exceptions
exception | condition |
---|---|
Exception | Active transaction for connection is in invalid state! " + "Connection was probably closed unexpectedly! or Can't set transaction for command! " + "Connection was probably closed unexpectedly! |
See Also
- class WrappedConnection