Click or drag to resize

IDataAccessAdapterUpdateEntitiesDirectly Method

Updates all entities of the same type 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.

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
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 amount of physically updated entities
See Also