Click or drag to resize

UnitOfWorkAddUpdateMultiCall Method (IEntityCollection, IEntity, IPredicate, IRelationCollection)

Adds a call to collection.UpdateMulti(Entity, filter, relations) to update entities directly in the database using the passed in criteria. The call will be executed inside the transaction used in Commit and will be executed after the last entity has been updated but before the PreEntityUpdate callbacks.

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 virtual void AddUpdateMultiCall(
	IEntityCollection collection,
	IEntity entityWithNewValues,
	IPredicate filter,
	IRelationCollection relations
)

Parameters

collection
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityCollection
Collection object to call UpdateMulti on.
entityWithNewValues
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntity
instance which holds the new values for the matching entities to update. Only changed fields are taken into account
filter
Type: SD.LLBLGen.Pro.ORMSupportClassesIPredicate
Filter to use.
relations
Type: SD.LLBLGen.Pro.ORMSupportClassesIRelationCollection
RelationCollection to use.
See Also