DaoBaseUpdateMultiAsync Method |
Async variant of
UpdateMulti(IEntity, ITransaction, IPredicate, IRelationCollection).
Updates all entities of the same type or subtype of the entity
entityWithNewValues directly in the persistent storage if they match the filter
supplied in
filterBucket. Only the fields changed in entityWithNewValues are updated for these fields. Entities of a subtype of the type
of
entityWithNewValues which are affected by the filterBucket's filter will thus also be 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 Task<int> UpdateMultiAsync(
IEntity entityWithNewValues,
ITransaction containingTransaction,
IPredicate updateFilter,
IRelationCollection relations,
CancellationToken cancellationToken
)
Public Function UpdateMultiAsync (
entityWithNewValues As IEntity,
containingTransaction As ITransaction,
updateFilter As IPredicate,
relations As IRelationCollection,
cancellationToken As CancellationToken
) As Task(Of Integer)
Parameters
- entityWithNewValues
- Type: SD.LLBLGen.Pro.ORMSupportClassesIEntity
IEntity instance which holds the new values for the matching entities to update. Only
changed fields are taken into account - containingTransaction
- Type: SD.LLBLGen.Pro.ORMSupportClassesITransaction
A containing transaction, if caller is added to a transaction, or null if not. - 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
Set of relations to walk to construct the total query - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
TaskInt32
Number of entities affected, if the used persistent storage has rowcounting enabled. Use the returned value to determine if the
update succeeded (value > 0)
Implements
IDaoUpdateMultiAsync(IEntity, ITransaction, IPredicate, IRelationCollection, CancellationToken)See Also