Extracts the changed state for all changed entities in the DomainContext

Namespace: RiaServicesContrib.Extensions
Assembly: RiaServicesContrib.EntityTools (in RiaServicesContrib.EntityTools.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static List<EntityStateSet> ExtractChangedState(
	this DomainContext context
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function ExtractChangedState ( _
	context As DomainContext _
) As List(Of EntityStateSet)
Visual C++
[ExtensionAttribute]
public:
static List<EntityStateSet^>^ ExtractChangedState(
	DomainContext^ context
)

Parameters

context
Type: DomainContext
The DomainContext to query for changes

Return Value

The changes for all context controlled entities, in suitable format for ApplyChangedState

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DomainContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

Remarks

WARNING: Changes to the DomainContext where Key() values are changed will NOT be accurately reflected when ApplyChangedState is called. In fact, changes to key values will result in phantom additions to the domain context. This is a known limitation, so DO NOT use these routines unless key values are assigned at the client, or where you expect to change primary key values for the Entities.

See Also