DynamicQueryEngineBaseCreateSingleTargetUpdateDQUsingCorrelatedSubQuery Method |
Creates a new Update Query object which is ready to use. Only 'changed' EntityFieldCore are included in the update query.
Primary Key fields are never updated. Uses a correlated subquery for filtering
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.9.0.0 (5.9.0)
Syntax protected void CreateSingleTargetUpdateDQUsingCorrelatedSubQuery(
IEntityFieldCore[] fields,
IFieldPersistenceInfo[] fieldsPersistenceInfo,
IActionQuery query,
IPredicate updateFilter,
IRelationCollection relationsToWalk,
bool addSetClauseParametersLast
)
Protected Sub CreateSingleTargetUpdateDQUsingCorrelatedSubQuery (
fields As IEntityFieldCore(),
fieldsPersistenceInfo As IFieldPersistenceInfo(),
query As IActionQuery,
updateFilter As IPredicate,
relationsToWalk As IRelationCollection,
addSetClauseParametersLast As Boolean
)
Parameters
- fields
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFieldCore
Array of EntityFieldCore objects to use to build the insert query - fieldsPersistenceInfo
- Type: SD.LLBLGen.Pro.ORMSupportClassesIFieldPersistenceInfo
Array of IFieldPersistenceInfo objects to use to build the update query - query
- Type: SD.LLBLGen.Pro.ORMSupportClassesIActionQuery
The query object to fill. - updateFilter
- Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicate
A complete IPredicate implementing object which contains the filter for the rows to update - relationsToWalk
- Type: SD.LLBLGen.Pro.ORMSupportClassesIRelationCollection
list of EntityRelation objects, which will be used to formulate a FROM clause with INNER JOINs. - addSetClauseParametersLast
- Type: SystemBoolean
if set to it will add the update set clause parameters as the last set of
parameters to the command object. Some ado.net providers need this (OleDb / Jet for example)
Exceptions Exception | Condition |
---|
ArgumentNullException | When fields is null or when updateFilter is null or
when relationsToWalk is null or when fieldsPersistence is null |
ArgumentException | When fields contains no EntityFieldCore instances or fieldsPersistenceInfo is empty. |
See Also