Class LLBLGenRef<T>
An entity reference specialized for the LLBLGen infrastructure.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Data.LLBLGen
Assembly: Kephas.Data.LLBLGen.dll
Syntax
public class LLBLGenRef<T> : Ref<T>, IRef<T>, IRef, IIdentifiable where T : class, IIdentifiable
Type Parameters
Name | Description |
---|---|
T | The referenced entity type. |
Constructors
| Improve this Doc View SourceLLBLGenRef(IEntityEntryAware, String)
Initializes a new instance of the LLBLGenRef<T> class.
Declaration
public LLBLGenRef(IEntityEntryAware entityEntryAware, string refIdName)
Parameters
Type | Name | Description |
---|---|---|
IEntityEntryAware | entityEntryAware | The entity information provider. |
System.String | refIdName | Name of the reference identifier. |
Properties
| Improve this Doc View SourceEntity
Gets or sets the identifier of the referenced entity.
Declaration
public override T Entity { get; set; }
Property Value
Type | Description |
---|---|
T | The identifier of the referenced entity. |
Overrides
Kephas.Data.Ref<T>.Entity
|
Improve this Doc
View Source
Id
Gets or sets the identifier of the referenced entity.
Declaration
public override object Id { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The identifier of the referenced entity. |
Overrides
Kephas.Data.Ref<T>.Id
Methods
| Improve this Doc View SourceGetAsync(Boolean, CancellationToken)
Gets the referenced entity asynchronously.
Declaration
public override Task<T> GetAsync(bool throwIfNotFound = true, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | throwIfNotFound | If true and the referenced entity is not found, an exception occurs. |
System.Threading.CancellationToken | cancellationToken | The cancellation token (optional). |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<T> | A task promising the referenced entity. |
Overrides
Kephas.Data.Ref<T>.GetAsync(System.Boolean, System.Threading.CancellationToken)