Show / Hide Table of Contents

Class EntityBase

An entity base.

Inheritance
System.Object
System.Dynamic.DynamicObject
ExpandoBase
Expando
EntityBase
Implements
IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
IEntity
IIdentifiable
IInstance
IChangeStateTrackable
IEntityEntryAware
Inherited Members
ExpandoBase.Item[String]
ExpandoBase.GetDynamicMemberNames()
ExpandoBase.HasDynamicMember(String)
ExpandoBase.TryGetMember(GetMemberBinder, Object)
ExpandoBase.TrySetMember(SetMemberBinder, Object)
ExpandoBase.TryInvokeMember(InvokeMemberBinder, Object[], Object)
ExpandoBase.ToDictionary(Func<String, String>, Func<Object, Object>)
ExpandoBase.GetInnerObjectTypeInfo()
ExpandoBase.GetThisTypeInfo()
ExpandoBase.TryGetValue(String, Object)
System.Dynamic.DynamicObject.GetMetaObject(System.Linq.Expressions.Expression)
System.Dynamic.DynamicObject.TryBinaryOperation(System.Dynamic.BinaryOperationBinder, System.Object, System.Object)
System.Dynamic.DynamicObject.TryConvert(System.Dynamic.ConvertBinder, System.Object)
System.Dynamic.DynamicObject.TryCreateInstance(System.Dynamic.CreateInstanceBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryDeleteIndex(System.Dynamic.DeleteIndexBinder, System.Object[])
System.Dynamic.DynamicObject.TryDeleteMember(System.Dynamic.DeleteMemberBinder)
System.Dynamic.DynamicObject.TryGetIndex(System.Dynamic.GetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryInvoke(System.Dynamic.InvokeBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TrySetIndex(System.Dynamic.SetIndexBinder, System.Object[], System.Object)
System.Dynamic.DynamicObject.TryUnaryOperation(System.Dynamic.UnaryOperationBinder, System.Object)
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 EntityBase : Expando, IExpando, IDynamicMetaObjectProvider, IIndexable, IEntity, IIdentifiable, IInstance, IChangeStateTrackable, IEntityEntryAware

Constructors

| Improve this Doc View Source

EntityBase()

Initializes a new instance of the EntityBase class.

Declaration
protected EntityBase()

Methods

| Improve this Doc View Source

ComputeTypeInfo()

Calculates the type information.

Declaration
protected virtual ITypeInfo ComputeTypeInfo()
Returns
Type Description
ITypeInfo

The calculated type information.

| Improve this Doc View Source

GetEntityEntry()

Gets the associated entity entry.

Declaration
public IEntityEntry GetEntityEntry()
Returns
Type Description
IEntityEntry

The associated entity entry.

| Improve this Doc View Source

GetTypeInfo()

Gets the type information for this instance.

Declaration
public ITypeInfo GetTypeInfo()
Returns
Type Description
ITypeInfo

The type information.

| Improve this Doc View Source

SetEntityEntry(IEntityEntry)

Sets the associated entity entry.

Declaration
public void SetEntityEntry(IEntityEntry entityEntry)
Parameters
Type Name Description
IEntityEntry entityEntry

Information describing the entity.

| Improve this Doc View Source

TrySetValue(String, Object)

Attempts to set the value with the given key.

Declaration
protected override bool TrySetValue(string key, object value)
Parameters
Type Name Description
System.String key

The key.

System.Object value

The value to set.

Returns
Type Description
System.Boolean

true if the value could be set, false otherwise.

Overrides
ExpandoBase.TrySetValue(String, Object)
Remarks

First of all, it is tried to set the property value to the inner object, if one is set. The next try is to set the property value to the expando object itself. Lastly, if still a property by the provided name cannot be found, the inner dictionary is used to set the value with the provided key.

Explicit Interface Implementations

| Improve this Doc View Source

IChangeStateTrackable.ChangeState

Gets or sets the change state of the entity.

Declaration
ChangeState IChangeStateTrackable.ChangeState { get; set; }
Returns
Type Description
ChangeState

The change state.

| Improve this Doc View Source

IIdentifiable.Id

Gets the identifier for this instance.

Declaration
object IIdentifiable.Id { get; }
Returns
Type Description
System.Object

The identifier.

Implements

IExpando
System.Dynamic.IDynamicMetaObjectProvider
IIndexable
IEntity
IIdentifiable
IInstance
IChangeStateTrackable
IEntityEntryAware

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