Clones an IEnumerable of entities into an EntitySet.
Namespace: RiaServicesContrib.ExtensionsAssembly: 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)"]