Прочетете на английски Редактиране

Споделяне чрез


RelatedEnd.Merge<TEntity> Method

Definition

Merges related entities into the local EntityCollection<TEntity>.

C#
protected void Merge<TEntity>(System.Collections.Generic.IEnumerable<TEntity> collection, System.Data.Objects.MergeOption mergeOption, bool setIsLoaded);

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

Продукт Версии
.NET Framework 3.5