IRelatedEnd.Load Method (MergeOption)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Loads the related object or objects into the related end with the specified merge option.

Namespace:   System.Data.Objects.DataClasses
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

void Load(
	MergeOption mergeOption
)

Parameters

mergeOption
Type: System.Data.Objects.MergeOption

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

The RelatedEnd class implements the Load method. Both the EntityCollection<TEntity> and EntityReference<TEntity> classes override this implementation.

Load is called to explicitly load related objects from a related end that is exposed by a navigation property. For more information, see Loading Related Objects.

The Load method loads related objects from the data source whether or not IsLoaded is true.

.NET Framework
Available since 3.5
Return to top
Show: