Converts list of EntityStateSets into Detached entities.
Namespace: RiaServicesContrib.ExtensionsAssembly: RiaServicesContrib.EntityTools (in RiaServicesContrib.EntityTools.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static IEnumerable<T> ToEntities<T>( this IList<EntityStateSet> stateSet ) where T : new(), Entity |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function ToEntities(Of T As {New, Entity}) ( _ stateSet As IList(Of EntityStateSet) _ ) As IEnumerable(Of T) |
Visual C++ |
---|
[ExtensionAttribute] public: generic<typename T> where T : gcnew(), Entity static IEnumerable<T>^ ToEntities( IList<EntityStateSet^>^ stateSet ) |
Parameters
- stateSet
- Type: System.Collections.Generic..::..IList<(Of <(<'EntityStateSet>)>)>
Source IList of EntityStateSets
Type Parameters
- T
- Entity Type
Return Value
IEnumerable of TUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IList<(Of <(<'EntityStateSet>)>)>. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Remarks
Any EntityStateSet which has a ModifiedState will ignore the OriginalState