Interface ITriggeredEntityStateInformation
Provides information about an entity state change that can be used for auditing purposes.
Namespace: Cireson.Core.Interfaces.DataAccess
Assembly: Cireson.Core.Interfaces.dll
Syntax
public interface ITriggeredEntityStateInformation
Remarks
Admin, 8/24/2017.
Properties
View SourceDataContext
The datacontext associated with this change.
Declaration
IDataContext DataContext { get; }
Property Value
Type | Description |
---|---|
IDataContext | The data context. |
Entity
Entity instance that initiated the trigger.
Declaration
object Entity { get; }
Property Value
Type | Description |
---|---|
System.Object | The entity. |
Entry
ObjectStateEntry of the entity that caused the trigger to fire.
Declaration
ObjectStateEntry Entry { get; }
Property Value
Type | Description |
---|---|
ObjectStateEntry | The entry. |
State
Entity state of the entity that caused the trigger to fire.
Declaration
EntityState State { get; }
Property Value
Type | Description |
---|---|
EntityState | The state. |
Remarks
This may be different than the state in the Entry property depending on the trigger event. But will always represent the entity state that caused the trigger to fire.