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> state,
	ExtractType stateType
)
Visual Basic
<ExtensionAttribute> _
Public Shared Sub ApplyState ( _
	entity As Entity, _
	state As IDictionary(Of String, Object), _
	stateType As ExtractType _
)
Visual C++
[ExtensionAttribute]
public:
static void ApplyState(
	Entity^ entity, 
	IDictionary<String^, Object^>^ state, 
	ExtractType stateType
)

Parameters

entity
Type: Entity
Target entity
state
Type: System.Collections.Generic..::..IDictionary<(Of <(<'String, Object>)>)>
IDictionary of DataMembers keyed by DataMember name
stateType
Type: RiaServicesContrib..::..ExtractType
EntityStateType of state to be applied

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