Click or drag to resize

DynamicQueryEngineBase.CreateUpdateDQ Method (IEntityFieldCore[],IFieldPersistenceInfo[], DbConnection, List<IPredicate>)

Creates a new Update Query object which is ready to use. Only 'changed' EntityFieldCore fields are included in the update query.

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 IActionQuery CreateUpdateDQ(
	IEntityFieldCore[] fields,
	IFieldPersistenceInfo[] fieldsPersistenceInfo,
	DbConnection connectionToUse,
	List<IPredicate> pkFilters
)

Parameters

fields
Type:SD.LLBLGen.Pro.ORMSupportClasses.IEntityFieldCore[]
EntityFieldCore array to use to build the update query.
fieldsPersistenceInfo
Type:SD.LLBLGen.Pro.ORMSupportClasses.IFieldPersistenceInfo[]
Array of IFieldPersistenceInfo objects 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.

Return Value

Type: IActionQuery
IActionQuery instance which is ready to be used.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen fields is null or fieldsPersistenceInfo is null
ArgumentExceptionWhen fields contains no EntityFieldCore instances or fieldsPersistenceInfo is empty.
See Also