EntityEvent Class
Assembly: PTS.EntityLayer.Events.dll
Syntax
Inheritance
System.Object
EntityEvent
Constructors
EntityEvent(EntityAction, EntityEntry)
Declaration
public EntityEvent(EntityAction action, EntityEntry entry)
Parameters
Type |
Name |
Description |
EntityAction |
action |
|
Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry |
entry |
|
EntityEvent(EntityAction, EntityEntry, IEntityEventSender)
Declaration
public EntityEvent(EntityAction action, EntityEntry entry, IEntityEventSender sender)
Parameters
Properties
Action
Declaration
public EntityAction Action { get; }
Property Value
Context
Declaration
public DbContext Context { get; }
Property Value
Type |
Description |
Microsoft.EntityFrameworkCore.DbContext |
|
Entity
Declaration
public object Entity { get; }
Property Value
Type |
Description |
System.Object |
|
Sender
Declaration
public IEntityEventSender Sender { get; }
Property Value
State
Declaration
public EntityState State { get; }
Property Value
Type |
Description |
Microsoft.EntityFrameworkCore.EntityState |
|
Methods
GetProperty(String)
Declaration
public PropertyState GetProperty(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
UpdateState(EntityAction, EntityEntry)
Declaration
public void UpdateState(EntityAction action, EntityEntry entry)
Parameters
Type |
Name |
Description |
EntityAction |
action |
|
Microsoft.EntityFrameworkCore.ChangeTracking.EntityEntry |
entry |
|
UpdateState(EntityAction, EntityEntry, IEntityEventSender)
Declaration
public void UpdateState(EntityAction action, EntityEntry entry, IEntityEventSender sender)
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