Applies extracted state of data members to entity

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

Syntax

C#
public static void ApplyState(
	this Entity entity,
	IDictionary<string, Object> originalState,
	IDictionary<string, Object> modifiedState
)
Visual Basic
<ExtensionAttribute> _
Public Shared Sub ApplyState ( _
	entity As Entity, _
	originalState As IDictionary(Of String, Object), _
	modifiedState As IDictionary(Of String, Object) _
)
Visual C++
[ExtensionAttribute]
public:
static void ApplyState(
	Entity^ entity, 
	IDictionary<String^, Object^>^ originalState, 
	IDictionary<String^, Object^>^ modifiedState
)

Parameters

entity
Type: Entity
Target entity
originalState
Type: System.Collections.Generic..::..IDictionary<(Of <(<'String, Object>)>)>
IDictionary of OriginalState DataMembers keyed by DataMember name
modifiedState
Type: System.Collections.Generic..::..IDictionary<(Of <(<'String, Object>)>)>
IDictionary of modified (aka current) state DataMembers keyed by DataMember name

Usage Note

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

See Also