EntityRef<TEntity> Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides for deferred loading and relationship maintenance for the singleton side of a one-to-many relationship in a LINQ to SQL application.
generic <typename TEntity>
where TEntity : classpublic value class EntityRef
public struct EntityRef<TEntity> where TEntity : class
type EntityRef<'Entity (requires 'Entity : null)> = struct
Public Structure EntityRef(Of TEntity)
Type Parameters
- TEntity
The type of the target entity.
- Inheritance
Remarks
This class is used in combination with EntitySet<TEntity>.
Constructors
EntityRef<TEntity>(EntityRef<TEntity>) |
Initializes a new instance of the EntityRef<TEntity> class by referencing the target entity. |
EntityRef<TEntity>(IEnumerable<TEntity>) |
Initializes a new instance of the EntityRef<TEntity> class by specifying the source. |
EntityRef<TEntity>(TEntity) |
Initializes a new instance of the EntityRef<TEntity> class by specifying the target entity. |
Properties
Entity |
Gets or sets the target entity. |
HasLoadedOrAssignedValue |
Gets a value that indicates whether the target has been loaded or assigned. |
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應