EntityEventHandler<TEntity> Class
Assembly: PTS.EntityLayer.Events.dll
Syntax
public class EntityEventHandler<TEntity> : EntityEventHandler
Type Parameters
Inheritance
System.Object
EntityEventHandler<TEntity>
Constructors
EntityEventHandler()
Declaration
public EntityEventHandler()
Properties
AnyEvent
Declaration
public Action<TEntity, EntityEvent> AnyEvent { get; set; }
Property Value
BeforeCreate
Declaration
public Action<TEntity, EntityEvent> BeforeCreate { get; set; }
Property Value
BeforeDelete
Declaration
public Action<TEntity, EntityEvent> BeforeDelete { get; set; }
Property Value
BeforeSave
Declaration
public Action<TEntity, EntityEvent> BeforeSave { get; set; }
Property Value
BeforeUpdate
Declaration
public Action<TEntity, EntityEvent> BeforeUpdate { get; set; }
Property Value
Create
Declaration
public Action<TEntity, EntityEvent> Create { get; set; }
Property Value
Delete
Declaration
public Action<TEntity, EntityEvent> Delete { get; set; }
Property Value
EntityType
Declaration
public override Type EntityType { get; }
Property Value
Type |
Description |
System.Type |
|
Overrides
Load
Declaration
public Action<TEntity, EntityEvent> Load { get; set; }
Property Value
Save
Declaration
public Action<TEntity, EntityEvent> Save { get; set; }
Property Value
Update
Declaration
public Action<TEntity, EntityEvent> Update { get; set; }
Property Value
Methods
GetPropertyState<TProperty>(Expression<Func<TEntity, TProperty>>, EntityEvent)
Declaration
public PropertyState GetPropertyState<TProperty>(Expression<Func<TEntity, TProperty>> expr, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<TEntity, TProperty>> |
expr |
|
EntityEvent |
ev |
|
Returns
Type Parameters
Name |
Description |
TProperty |
|
OnAnyEvent(TEntity, EntityEvent)
Declaration
protected virtual void OnAnyEvent(TEntity entity, EntityEvent ev)
Parameters
OnAnyEvent(Object, EntityEvent)
Declaration
protected override sealed void OnAnyEvent(object entity, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Object |
entity |
|
EntityEvent |
ev |
|
Overrides
OnBeforeCreate(TEntity, EntityEvent)
Declaration
protected virtual void OnBeforeCreate(TEntity entity, EntityEvent ev)
Parameters
OnBeforeCreate(Object, EntityEvent)
Declaration
protected override sealed void OnBeforeCreate(object entity, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Object |
entity |
|
EntityEvent |
ev |
|
Overrides
OnBeforeDelete(TEntity, EntityEvent)
Declaration
protected virtual void OnBeforeDelete(TEntity entity, EntityEvent ev)
Parameters
OnBeforeDelete(Object, EntityEvent)
Declaration
protected override sealed void OnBeforeDelete(object entity, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Object |
entity |
|
EntityEvent |
ev |
|
Overrides
OnBeforeSave(TEntity, EntityEvent)
Declaration
protected virtual void OnBeforeSave(TEntity entity, EntityEvent ev)
Parameters
OnBeforeSave(Object, EntityEvent)
Declaration
protected override sealed void OnBeforeSave(object entity, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Object |
entity |
|
EntityEvent |
ev |
|
Overrides
OnBeforeUpdate(TEntity, EntityEvent)
Declaration
protected virtual void OnBeforeUpdate(TEntity entity, EntityEvent ev)
Parameters
OnBeforeUpdate(Object, EntityEvent)
Declaration
protected override sealed void OnBeforeUpdate(object entity, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Object |
entity |
|
EntityEvent |
ev |
|
Overrides
OnCreate(TEntity, EntityEvent)
Declaration
protected virtual void OnCreate(TEntity entity, EntityEvent ev)
Parameters
OnCreate(Object, EntityEvent)
Declaration
protected override sealed void OnCreate(object entity, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Object |
entity |
|
EntityEvent |
ev |
|
Overrides
OnDelete(TEntity, EntityEvent)
Declaration
protected virtual void OnDelete(TEntity entity, EntityEvent ev)
Parameters
OnDelete(Object, EntityEvent)
Declaration
protected override sealed void OnDelete(object entity, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Object |
entity |
|
EntityEvent |
ev |
|
Overrides
OnLoad(TEntity, EntityEvent)
Declaration
protected virtual void OnLoad(TEntity entity, EntityEvent ev)
Parameters
OnLoad(Object, EntityEvent)
Declaration
protected override sealed void OnLoad(object entity, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Object |
entity |
|
EntityEvent |
ev |
|
Overrides
OnSave(TEntity, EntityEvent)
Declaration
protected virtual void OnSave(TEntity entity, EntityEvent ev)
Parameters
OnSave(Object, EntityEvent)
Declaration
protected override sealed void OnSave(object entity, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Object |
entity |
|
EntityEvent |
ev |
|
Overrides
OnUpdate(TEntity, EntityEvent)
Declaration
protected virtual void OnUpdate(TEntity entity, EntityEvent ev)
Parameters
OnUpdate(Object, EntityEvent)
Declaration
protected override sealed void OnUpdate(object entity, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Object |
entity |
|
EntityEvent |
ev |
|
Overrides
PropertyChanged<TValue>(Expression<Func<TEntity, TValue>>, EntityEvent)
Declaration
public bool PropertyChanged<TValue>(Expression<Func<TEntity, TValue>> expr, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<TEntity, TValue>> |
expr |
|
EntityEvent |
ev |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
PropertyOriginalValue<TValue>(Expression<Func<TEntity, TValue>>, EntityEvent)
Declaration
public TValue PropertyOriginalValue<TValue>(Expression<Func<TEntity, TValue>> expr, EntityEvent ev)
Parameters
Type |
Name |
Description |
System.Linq.Expressions.Expression<System.Func<TEntity, TValue>> |
expr |
|
EntityEvent |
ev |
|
Returns
Type Parameters
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