EntityEventsDbContextExtensions Class
Namespace: PTS
Assembly: PTS.EntityLayer.Events.dll
Syntax
public static class EntityEventsDbContextExtensions
Inheritance
System.Object
EntityEventsDbContextExtensions
Methods
AddEntityEventSender(DbContext, IEntityEventSender)
Declaration
public static void AddEntityEventSender(this DbContext context, IEntityEventSender sender)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.EntityFrameworkCore.DbContext | context | |
IEntityEventSender | sender |
GetEntityEventService(DbContext)
Declaration
public static IEntityEventService GetEntityEventService(this DbContext context)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.EntityFrameworkCore.DbContext | context |
Returns
Type | Description |
---|---|
IEntityEventService |
SaveChanges(DbContext, IEntityEventSender)
Declaration
public static int SaveChanges(this DbContext context, IEntityEventSender sender)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.EntityFrameworkCore.DbContext | context | |
IEntityEventSender | sender |
Returns
Type | Description |
---|---|
System.Int32 |
WithEntityEventSender(DbContext, IEntityEventSender, Action)
Declaration
public static void WithEntityEventSender(this DbContext context, IEntityEventSender sender, Action method)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.EntityFrameworkCore.DbContext | context | |
IEntityEventSender | sender | |
System.Action | method |
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()