Clones an IEnumerable of entities into an EntitySet.

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> Clone<T>(
	this EntitySet<T> collection,
	IEnumerable<T> source,
	LoadBehavior loadBehavior
)
where T : new(), Entity
Visual Basic
<ExtensionAttribute> _
Public Shared Function Clone(Of T As {New, Entity}) ( _
	collection As EntitySet(Of T), _
	source As IEnumerable(Of T), _
	loadBehavior As LoadBehavior _
) As IEnumerable(Of T)
Visual C++
[ExtensionAttribute]
public:
generic<typename T>
where T : gcnew(), Entity
static IEnumerable<T>^ Clone(
	EntitySet<T>^ collection, 
	IEnumerable<T>^ source, 
	LoadBehavior loadBehavior
)

Parameters

collection
Type: EntitySet<(Of <(<'T>)>)>
Target EntitySet
source
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'T>)>)>
Source entities
loadBehavior
Type: LoadBehavior
Load behavior used during clone

Type Parameters

T
Entity type

Return Value

[Missing <returns> documentation for "M:RiaServicesContrib.Extensions.RiaServicesExtensions.Clone``1(System.ServiceModel.DomainServices.Client.EntitySet{``0},System.Collections.Generic.IEnumerable{``0},System.ServiceModel.DomainServices.Client.LoadBehavior)"]

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 .

See Also