| AbstractDatabaseAbstracterGetCommand Method (Boolean) |
Creates a new IDbCommand and attaches it to a database connection.
If the abstracter is in transaction mode, and openConnection is false, the connection used is the transaction connection.
Else, a new connection is used.
Namespace: Activsoft.Engine.DbAssembly: Activsoft.Engine (in Activsoft.Engine.dll) Version: 6.0.0.0
Syntaxpublic virtual IDbCommand GetCommand(
bool openConnection
)
Public Overridable Function GetCommand (
openConnection As Boolean
) As IDbCommand
public:
virtual IDbCommand^ GetCommand(
bool openConnection
)
abstract GetCommand :
openConnection : bool -> IDbCommand
override GetCommand :
openConnection : bool -> IDbCommand Parameters
- openConnection
- Type: SystemBoolean
if set to true [open connection].
Return Value
Type:
IDbCommandan IDbCommand ready to use on an open connection
Implements
IDatabaseAbstracterGetCommand(Boolean)
See Also