Click or drag to resize
IDaoUpdateMulti 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.2.0.0 (5.2.17.0403)
Syntax
int UpdateMulti(
	IEntity entityWithNewValues,
	ITransaction containingTransaction,
	IPredicate updateFilter
)

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: Int32
Number of entities affected, if the used persistent storage has rowcounting enabled. Use the returned value to determine if the update succeeded (value > 0)
See Also