EntityReference<TEntity> Constructor ()

 

Creates a new instance of EntityReference<TEntity>.

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

public EntityReference()

The default constructor is required for some serialization scenarios. It should not be used to create new EntityReferences. Use the GetRelatedReference or GetRelatedEnd methods on the RelationshipManager class instead.