Edit

Share via


IRelatedEnd.Load Method

Definition

Loads the related object or objects into this related end.

Overloads

Load()

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

Load(MergeOption)

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

Remarks

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.

Load()

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

public void Load();

Remarks

The RelatedEnd class implements the Load method of IRelatedEnd. For more information, see Load.

Load is called to explicitly load related objects from a related end 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.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Load(MergeOption)

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

public void Load(System.Data.Objects.MergeOption mergeOption);

Parameters

mergeOption
MergeOption

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

Remarks

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.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1