Show / Hide Table of Contents

Class RefBase

Base class for references.

Inheritance
System.Object
RefBase
Ref<T>
ServiceRef<TService>
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
Assembly: Kephas.Data.dll
Syntax
public abstract class RefBase

Constructors

| Improve this Doc View Source

RefBase(Object, String)

Initializes a new instance of the RefBase class.

Declaration
protected RefBase(object containerEntity, string refFieldName)
Parameters
Type Name Description
System.Object containerEntity

The entity containing the reference.

System.String refFieldName

The name of the reference field.

Properties

| Improve this Doc View Source

RefFieldName

Gets the name of the reference field.

Declaration
protected string RefFieldName { get; }
Property Value
Type Description
System.String

The name of the reference field.

Methods

| Improve this Doc View Source

GetContainerEntity()

Gets the entity containing the reference.

Declaration
protected virtual object GetContainerEntity()
Returns
Type Description
System.Object

The entity containing the reference.

| Improve this Doc View Source

GetContainerEntityEntry()

Gets the container entity entry.

Declaration
protected virtual IEntityEntry GetContainerEntityEntry()
Returns
Type Description
IEntityEntry

The container entity entry.

Exceptions
Type Condition
System.ObjectDisposedException

Thrown when the entity has been disposed.

| Improve this Doc View Source

GetDataContext(IEntityEntry)

Gets the data context for entity retrieval.

Declaration
protected virtual IDataContext GetDataContext(IEntityEntry entityEntry)
Parameters
Type Name Description
IEntityEntry entityEntry

Information describing the entity.

Returns
Type Description
IDataContext

The data context.

| Improve this Doc View Source

GetEntityPropertyValue(String)

Gets the value of the indicated entity property.

Declaration
protected virtual object GetEntityPropertyValue(string propertyName)
Parameters
Type Name Description
System.String propertyName

Name of the property.

Returns
Type Description
System.Object

The value of the entity property.

| Improve this Doc View Source

SetEntityPropertyValue(String, Object)

Sets the value of the indicated entity property.

Declaration
protected virtual void SetEntityPropertyValue(string propertyName, object value)
Parameters
Type Name Description
System.String propertyName

Name of the property.

System.Object value

The value.

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