EntityCollectionBaseTEntityUpdateMulti Method (IEntity, IPredicate) |
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.5.0.0 (5.5.18.1019)
Syntax public int UpdateMulti(
IEntity entityWithNewValues,
IPredicate updateFilter
)
Public Function UpdateMulti (
entityWithNewValues As IEntity,
updateFilter As IPredicate
) As 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. Can be null, which
will result in an update action which will affect all Customer entities.
Return Value
Type:
Int32Amount of entities affected, if the used persistent storage has rowcounting enabled.
Implements
IEntityCollectionUpdateMulti(IEntity, IPredicate)See Also