DynamicQueryEngineBaseCreateUpdateDQ Method (IEntityFieldCore, IFieldPersistenceInfo, DbConnection, ListIPredicate) |
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.11.0.0 (5.11.23.1114)
Syntax public IActionQuery CreateUpdateDQ(
IEntityFieldCore[] fields,
IFieldPersistenceInfo[] fieldsPersistenceInfo,
DbConnection connectionToUse,
List<IPredicate> pkFilters
)
Public Function CreateUpdateDQ (
fields As IEntityFieldCore(),
fieldsPersistenceInfo As IFieldPersistenceInfo(),
connectionToUse As DbConnection,
pkFilters As List(Of IPredicate)
) As IActionQuery
Parameters
- fields
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFieldCore
EntityFieldCore array to use to build the update query. - fieldsPersistenceInfo
- Type: SD.LLBLGen.Pro.ORMSupportClassesIFieldPersistenceInfo
Array of IFieldPersistenceInfo objects to use to build the update query - connectionToUse
- Type: System.Data.CommonDbConnection
The connection to use for the query - pkFilters
- Type: System.Collections.GenericListIPredicate
Arraylist, with for each entity (from root to leaf) the PK filter for that entity.
Return Value
Type:
IActionQueryIActionQuery instance which is ready to be used.
Exceptions Exception | Condition |
---|
ArgumentNullException | When fields is null or fieldsPersistenceInfo is null |
ArgumentException | When fields contains no EntityFieldCore instances or fieldsPersistenceInfo is empty. |
See Also