EntityRef(Of TEntity) Structure

 
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.

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)

Public Structure EntityRef(Of TEntity As Class)

Type Parameters

TEntity

The type of the target entity.

NameDescription
System_CAPS_pubmethodEntityRef(Of TEntity)(TEntity)

Initializes a new instance of the EntityRef(Of TEntity) class by specifying the target entity.

System_CAPS_pubmethodEntityRef(Of TEntity)(EntityRef(Of TEntity))

Initializes a new instance of the EntityRef(Of TEntity) class by referencing the target entity.

System_CAPS_pubmethodEntityRef(Of TEntity)(IEnumerable(Of TEntity))

Initializes a new instance of the EntityRef(Of TEntity) class by specifying the source.

NameDescription
System_CAPS_pubpropertyEntity

Gets or sets the target entity.

System_CAPS_pubpropertyHasLoadedOrAssignedValue

Gets a value that indicates whether the target has been loaded or assigned.

NameDescription
System_CAPS_pubmethodEquals(Object)

Indicates whether this instance and a specified object are equal.(Inherited from ValueType.)

System_CAPS_pubmethodGetHashCode()

Returns the hash code for this instance.(Inherited from ValueType.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns the fully qualified type name of this instance.(Inherited from ValueType.)

This class is used in combination with EntitySet(Of TEntity).

.NET Framework
Available since 3.5
Windows Phone Silverlight
Available since 7.1

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

Return to top
Show: