Imports an a list of EntityStateSet objects into the target

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

Syntax

C#
public static IEnumerable<T> Import<T>(
	this EntitySet<T> collection,
	IList<EntityStateSet> stateSet
)
where T : new(), Entity
Visual Basic
<ExtensionAttribute> _
Public Shared Function Import(Of T As {New, Entity}) ( _
	collection As EntitySet(Of T), _
	stateSet As IList(Of EntityStateSet) _
) As IEnumerable(Of T)
Visual C++
[ExtensionAttribute]
public:
generic<typename T>
where T : gcnew(), Entity
static IEnumerable<T>^ Import(
	EntitySet<T>^ collection, 
	IList<EntityStateSet^>^ stateSet
)

Parameters

collection
Type: EntitySet<(Of <(<'T>)>)>
Target EntitySet
stateSet
Type: System.Collections.Generic..::..IList<(Of <(<'EntityStateSet>)>)>
Source list of EntityStateSet objects

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:RiaServicesContrib.Extensions.RiaServicesExtensions.Import``1(System.ServiceModel.DomainServices.Client.EntitySet{``0},System.Collections.Generic.IList{RiaServicesContrib.EntityStateSet})"]

Return Value

IEnumerable of imported entities

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type EntitySet<(Of <(<'T>)>)>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

Remarks

Uses a LoadBehavior of RefreshCurrent

See Also