RelatedEnd.Merge<TEntity>(IEnumerable<TEntity>, MergeOption, Boolean) Method

Definition

Merges related entities into the local EntityCollection<TEntity>.

protected:
generic <typename TEntity>
 void Merge(System::Collections::Generic::IEnumerable<TEntity> ^ collection, System::Data::Objects::MergeOption mergeOption, bool setIsLoaded);
protected void Merge<TEntity> (System.Collections.Generic.IEnumerable<TEntity> collection, System.Data.Objects.MergeOption mergeOption, bool setIsLoaded);
member this.Merge : seq<'Entity> * System.Data.Objects.MergeOption * bool -> unit

Type Parameters

TEntity

The type of the IEnumerable<T> collection of entity objects to be merged.

Parameters

collection
IEnumerable<TEntity>

An IEnumerable<T> collection of entity objects to add to this related end.

mergeOption
MergeOption

The MergeOption to use when merging objects into an existing EntityCollection<TEntity>.

setIsLoaded
Boolean

Indicates whether the set of related objects is complete and matches the server. Operations such as Load(MergeOption) set setIsLoaded to true, but Attach sets it to false.

Remarks

The Merge<TEntity> method is called by Object Services during relationship operations.

Applies to