Click or drag to resize

DaoBaseUpdateMulti Method (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.6.0.0 (5.6.19.0117)
Syntax
public int UpdateMulti(
	IEntity entityWithNewValues,
	ITransaction containingTransaction,
	IPredicate updateFilter,
	IRelationCollection relations
)

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

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)

Implements

IDaoUpdateMulti(IEntity, ITransaction, IPredicate, IRelationCollection)
See Also