Click or drag to resize

DataAccessAdapterCoreUpdateEntitiesDirectly Method

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.4.0.0 (5.4.0)
Syntax
public virtual int UpdateEntitiesDirectly(
	IEntity2 entityWithNewValues,
	IRelationPredicateBucket filterBucket
)

Parameters

entityWithNewValues
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntity2
Entity object which contains the new values for the entities of the same type and which match the filter in filterBucket. Only fields which are changed are updated.
filterBucket
Type: SD.LLBLGen.Pro.ORMSupportClassesIRelationPredicateBucket
filter information to filter out the entities to update.

Return Value

Type: Int32
the number of physically updated entities. Use this number only to test if the update succeeded (so value is > 0).

Implements

IDataAccessAdapterUpdateEntitiesDirectly(IEntity2, IRelationPredicateBucket)
See Also