EntityEventHandler Class
Assembly: PTS.EntityLayer.Events.dll
Syntax
public class EntityEventHandler
Inheritance
System.Object
EntityEventHandler
Properties
AnyEvent
Declaration
public Action<object, EntityEvent> AnyEvent { get; set; }
Property Value
Type |
Description |
System.Action<System.Object, EntityEvent> |
|
BeforeCreate
Declaration
public Action<object, EntityEvent> BeforeCreate { get; set; }
Property Value
Type |
Description |
System.Action<System.Object, EntityEvent> |
|
BeforeDelete
Declaration
public Action<object, EntityEvent> BeforeDelete { get; set; }
Property Value
Type |
Description |
System.Action<System.Object, EntityEvent> |
|
BeforeSave
Declaration
public Action<object, EntityEvent> BeforeSave { get; set; }
Property Value
Type |
Description |
System.Action<System.Object, EntityEvent> |
|
BeforeUpdate
Declaration
public Action<object, EntityEvent> BeforeUpdate { get; set; }
Property Value
Type |
Description |
System.Action<System.Object, EntityEvent> |
|
Create
Declaration
public Action<object, EntityEvent> Create { get; set; }
Property Value
Type |
Description |
System.Action<System.Object, EntityEvent> |
|
Delete
Declaration
public Action<object, EntityEvent> Delete { get; set; }
Property Value
Type |
Description |
System.Action<System.Object, EntityEvent> |
|
EntityType
Declaration
public virtual Type EntityType { get; }
Property Value
Type |
Description |
System.Type |
|
Load
Declaration
public Action<object, EntityEvent> Load { get; set; }
Property Value
Type |
Description |
System.Action<System.Object, EntityEvent> |
|
Save
Declaration
public Action<object, EntityEvent> Save { get; set; }
Property Value
Type |
Description |
System.Action<System.Object, EntityEvent> |
|
Update
Declaration
public Action<object, EntityEvent> Update { get; set; }
Property Value
Type |
Description |
System.Action<System.Object, EntityEvent> |
|
Methods
HandleEvent(EntityEvent)
Declaration
public void HandleEvent(EntityEvent ev)
Parameters
OnAnyEvent(Object, EntityEvent)
Declaration
protected virtual void OnAnyEvent(object entity, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Object |
entity |
|
EntityEvent |
ev |
|
OnBeforeCreate(Object, EntityEvent)
Declaration
protected virtual void OnBeforeCreate(object entity, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Object |
entity |
|
EntityEvent |
ev |
|
OnBeforeDelete(Object, EntityEvent)
Declaration
protected virtual void OnBeforeDelete(object entity, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Object |
entity |
|
EntityEvent |
ev |
|
OnBeforeSave(Object, EntityEvent)
Declaration
protected virtual void OnBeforeSave(object entity, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Object |
entity |
|
EntityEvent |
ev |
|
OnBeforeUpdate(Object, EntityEvent)
Declaration
protected virtual void OnBeforeUpdate(object entity, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Object |
entity |
|
EntityEvent |
ev |
|
OnCreate(Object, EntityEvent)
Declaration
protected virtual void OnCreate(object entity, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Object |
entity |
|
EntityEvent |
ev |
|
OnDelete(Object, EntityEvent)
Declaration
protected virtual void OnDelete(object entity, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Object |
entity |
|
EntityEvent |
ev |
|
OnLoad(Object, EntityEvent)
Declaration
protected virtual void OnLoad(object entity, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Object |
entity |
|
EntityEvent |
ev |
|
OnSave(Object, EntityEvent)
Declaration
protected virtual void OnSave(object entity, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Object |
entity |
|
EntityEvent |
ev |
|
OnUpdate(Object, EntityEvent)
Declaration
protected virtual void OnUpdate(object entity, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Object |
entity |
|
EntityEvent |
ev |
|
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()
Extension Methods