EntityCollectionBaseTEntityUpdateMultiAsync Method (IEntity, IPredicate, IRelationCollection, CancellationToken) |
Async variant of
UpdateMulti(IEntity, IPredicate, IRelationCollection).
Updates in the persistent storage all entities of the type this collection is for which have data in common with the specified
entity. Which fields are updated in those matching entities depends on which fields are
changed in entityWithNewValues. The new values of these fields are read from entityWithNewValues.
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 virtual Task<int> UpdateMultiAsync(
IEntity entityWithNewValues,
IPredicate updateFilter,
IRelationCollection relations,
CancellationToken cancellationToken
)
Public Overridable Function UpdateMultiAsync (
entityWithNewValues As IEntity,
updateFilter As IPredicate,
relations As IRelationCollection,
cancellationToken As CancellationToken
) As Task(Of Integer)
Parameters
- entityWithNewValues
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntity
entity instance which holds the new values for the matching entities to update. Only changed fields are taken
into account - updateFilter
- Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicate
A predicate or predicate expression which should be used as filter for the entities to update. - relations
- Type: SD.LLBLGen.Pro.ORMSupportClassesIRelationCollection
The set of relations to walk to construct the total query. - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
TaskInt32
Amount of entities affected, if the used persistent storage has rowcounting enabled.
Implements
IEntityCollectionUpdateMultiAsync(IEntity, IPredicate, IRelationCollection, CancellationToken)See Also