Perform a bulk update/delete operation given the underlying query defintion.
Namespace:
NHibernate.HqlAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Function ExecuteUpdate ( _ queryParameters As QueryParameters, _ session As ISessionImplementor _ ) As Integer |
C# |
---|
int ExecuteUpdate( QueryParameters queryParameters, ISessionImplementor session ) |
Visual C++ |
---|
int ExecuteUpdate( QueryParameters^ queryParameters, ISessionImplementor^ session ) |
JavaScript |
---|
function executeUpdate(queryParameters, session); |
Parameters
- queryParameters
- Type: NHibernate.Engine..::.QueryParameters
The query bind parameters.
- session
- Type: NHibernate.Engine..::.ISessionImplementor
The session owning this query.
Return Value
The number of entities updated or deleted.
Exceptions
Exception | Condition |
---|---|
NHibernate..::.HibernateException |