EntityRef(TEntity) Structure

EntityRef<TEntity> Structure

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Provides for deferred loading and relationship maintenance for the singleton side of a one-to-many relationship in a LINQ to SQL application.

Namespace:  System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

No code example is currently available or this language may not be supported.

Type Parameters

TEntity

The type of the target entity.

The EntityRef<TEntity> type exposes the following members.

  NameDescription
Public methodEntityRef<TEntity>(TEntity)Initializes a new instance of the EntityRef<TEntity> class by specifying the target entity.
Public methodEntityRef<TEntity>(EntityRef<TEntity>)Initializes a new instance of the EntityRef<TEntity> class by referencing the target entity.
Public methodEntityRef<TEntity>(IEnumerable<TEntity>)Initializes a new instance of the EntityRef<TEntity> class by specifying the source.
Top

  NameDescription
Public propertyEntityGets or sets the target entity.
Public propertyHasLoadedOrAssignedValueGets a value that indicates whether the target has been loaded or assigned.
Top

  NameDescription
Public methodEqualsIndicates whether this instance and a specified object are equal. (Inherited from ValueType.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeReturns the hash code for this instance. (Inherited from ValueType.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns the fully qualified type name of this instance. (Inherited from ValueType.)
Top

Windows Phone OS

Supported in: 8.1, 8.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Show:
© 2017 Microsoft