Click or drag to resize
DynamicQueryEngineBase.CreateUpdateDQ Method (IEntityFields, DbConnection, List<IPredicate>, IPredicate, IRelationCollection)
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.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.2.0.0 (5.2.17.0403)
Syntax
public IActionQuery CreateUpdateDQ(
	IEntityFields fields,
	DbConnection connectionToUse,
	List<IPredicate> pkFilters,
	IPredicate additionalUpdateFilter,
	IRelationCollection relationsToWalk
)

Parameters

fields
Type: SD.LLBLGen.Pro.ORMSupportClasses.IEntityFields
EntityFields object to use to build the update query.
connectionToUse
Type: System.Data.Common.DbConnection
The connection to use for the query
pkFilters
Type: System.Collections.Generic.List<IPredicate>
Arraylist, with for each entity (from root to leaf) the PK filter for that entity.
additionalUpdateFilter
Type: SD.LLBLGen.Pro.ORMSupportClasses.IPredicate
Extra predicate for concurrency purposes.
relationsToWalk
Type: SD.LLBLGen.Pro.ORMSupportClasses.IRelationCollection
list of EntityRelation objects, which will be used to formulate a FROM clause with INNER JOINs.

Return Value

Type: IActionQuery
IActionQuery instance which is ready to be used.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen fields is null or when updateFilter is null or when relationsToWalk is null
ArgumentExceptionWhen fields contains no EntityField instances.
Remarks
Selfservicing specific
See Also