Applies previously extracted state to the specified context
Namespace: RiaServicesContrib.ExtensionsAssembly: 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 ) |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Sub ApplyChangedState ( _ context As DomainContext, _ changedState As List(Of EntityStateSet) _ ) |
Visual C++ |
---|
[ExtensionAttribute] public: static void ApplyChangedState( DomainContext^ context, List<EntityStateSet^>^ changedState ) |
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]
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
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