Share via


EntityReference<TEntity>.Load(MergeOption) Method

Definition

Loads the related object for this EntityReference<TEntity> with the specified merge option.

public override void Load (System.Data.Entity.Core.Objects.MergeOption mergeOption);
override this.Load : System.Data.Entity.Core.Objects.MergeOption -> unit

Parameters

mergeOption
MergeOption

Specifies how the object should be returned if it already exists in the ObjectContext .

Exceptions

The source of the EntityReference<TEntity> is null or a query returned more than one related end or a query returned zero related ends, and one related end was expected.

Applies to