DaoBaseUpdateMulti Method (IEntity, ITransaction, IPredicate) |
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.9.0.0 (5.9.0)
Syntax public int UpdateMulti(
IEntity entityWithNewValues,
ITransaction containingTransaction,
IPredicate updateFilter
)
Public Function UpdateMulti (
entityWithNewValues As IEntity,
containingTransaction As ITransaction,
updateFilter As IPredicate
) As 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.
Return Value
Type:
Int32Number of entities affected, if the used persistent storage has rowcounting enabled. Use the returned value to determine if the
update succeeded (value > 0)
Implements
IDaoUpdateMulti(IEntity, ITransaction, IPredicate)See Also