Class EntityBase
An entity base.
Implements
Inherited Members
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 SourceEntityBase()
Initializes a new instance of the EntityBase class.
Declaration
protected EntityBase()
Methods
| Improve this Doc View SourceComputeTypeInfo()
Calculates the type information.
Declaration
protected virtual ITypeInfo ComputeTypeInfo()
Returns
| Type | Description |
|---|---|
| ITypeInfo | The calculated type information. |
GetEntityEntry()
Gets the associated entity entry.
Declaration
public IEntityEntry GetEntityEntry()
Returns
| Type | Description |
|---|---|
| IEntityEntry | The associated entity entry. |
GetTypeInfo()
Gets the type information for this instance.
Declaration
public ITypeInfo GetTypeInfo()
Returns
| Type | Description |
|---|---|
| ITypeInfo | The type information. |
SetEntityEntry(IEntityEntry)
Sets the associated entity entry.
Declaration
public void SetEntityEntry(IEntityEntry entityEntry)
Parameters
| Type | Name | Description |
|---|---|---|
| IEntityEntry | entityEntry | Information describing the entity. |
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 |
|
Overrides
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 SourceIChangeStateTrackable.ChangeState
Gets or sets the change state of the entity.
Declaration
ChangeState IChangeStateTrackable.ChangeState { get; set; }
Returns
| Type | Description |
|---|---|
| ChangeState | The change state. |
IIdentifiable.Id
Gets the identifier for this instance.
Declaration
object IIdentifiable.Id { get; }
Returns
| Type | Description |
|---|---|
| System.Object | The identifier. |