Show / Hide Table of Contents

Class LLBLGenRef<T>

An entity reference specialized for the LLBLGen infrastructure.

Inheritance
System.Object
RefBase
Ref<T>
LLBLGenRef<T>
Implements
IRef<T>
IRef
IIdentifiable
Inherited Members
Ref<T>.IIdentifiable.Id
Ref<T>.EntityType
Ref<T>.IRef.Entity
Ref<T>.IsEmpty
Ref<T>.IRef.GetAsync(Boolean, CancellationToken)
RefBase.RefFieldName
RefBase.GetEntityPropertyValue(String)
RefBase.SetEntityPropertyValue(String, Object)
RefBase.GetContainerEntity()
RefBase.GetContainerEntityEntry()
RefBase.GetDataContext(IEntityEntry)
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 Source

LLBLGenRef(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 Source

Entity

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 Source

GetAsync(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)

Implements

IRef<T>
IRef
IIdentifiable

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX