Applies previously extracted state to the specified context

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

Syntax

C#
public static void ApplyChangedState(
	this DomainContext context,
	List<EntityStateSet> changedState,
	bool doBasicFixup
)
Visual Basic
<ExtensionAttribute> _
Public Shared Sub ApplyChangedState ( _
	context As DomainContext, _
	changedState As List(Of EntityStateSet), _
	doBasicFixup As Boolean _
)
Visual C++
[ExtensionAttribute]
public:
static void ApplyChangedState(
	DomainContext^ context, 
	List<EntityStateSet^>^ changedState, 
	bool doBasicFixup
)

Parameters

context
Type: DomainContext
The context to apply the changed state to
changedState
Type: System.Collections.Generic..::..List<(Of <(<'EntityStateSet>)>)>
The changed state to apply [retrieved from ExtractChangedState]
doBasicFixup
Type: System..::..Boolean
Performs basic fixup of any bi-directional EntityCollections for newly added entities.

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

NOTE: This routine will also 'fixup' any EntityCollection(s) that are referenced by added Entity derivatives where the added child has a bidirectional reference with the parent Entity. Other non-directly referenced collections may need manual fixup. For Example: Parent -> EntityCollection Child Child -> Parent

See Also