Updates entities by executing SQL directly against the database. NB. No entities are materialized and therefore no callbacks run, cached entities are not updated in the second-level cache or full-text search index etc.

Namespace:  Mindscape.LightSpeed.ServiceModel
Assembly:  Mindscape.LightSpeed.ServiceModel (in Mindscape.LightSpeed.ServiceModel.dll)
Version: 4.0.0.0 (4.0.0.0)

Syntax

C#
public override void Update(
	Query query,
	Object attributes
)
Visual Basic (Declaration)
Public Overrides Sub Update ( _
	query As Query, _
	attributes As Object _
)

Parameters

query
Type: Mindscape.LightSpeed.Querying..::.Query
A query used to determine the entities to update.
attributes
Type: System..::.Object
The attributes to be updated. This argument can either be an IDictionary<(Of <(TKey, TValue>)>), or, an object whose properties correspond to the target attributes (useful when using an anonymous type).

Implements

IUnitOfWork..::.Update(Query, Object)
IUnitOfWork..::.Update(Query, Object)

Remarks

This is not supported with a DistributedUnitOfWork

Exceptions

ExceptionCondition
System..::.NotImplementedExceptionNotImplementedException

See Also