Click or drag to resize

ActionQueryExecute Method

Executes the query contained by the IQuery instance. If there was nothing to execute, 0 is returned.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax
public int Execute()

Return Value

Type: Int32
If a query is executed: the number of rows affected (if applicable), otherwise 0. If no query is executed: 1 (so callers won't see it as a concurrency exception)

Implements

IActionQueryExecute
Exceptions
ExceptionCondition
InvalidOperationExceptionWhen there is no command object inside the query object, or no connection object inside the query object
ORMQueryExecutionExceptionwhen an exception was caught during query execution
See Also