Table of Contents

Method PublishEntityDeletedEvent

Namespace
Innova.Prism.Infrastructure.Events
Assembly
Innova.Prism.Infrastructure.dll

PublishEntityDeletedEvent<T>(IEventAggregator, EntityKeyEventData<T>)

Publishes an entity deleted event using the specified event aggregator.

public static void PublishEntityDeletedEvent<T>(this IEventAggregator eventAggregator, EntityKeyEventData<T> eventData) where T : class

Parameters

eventAggregator IEventAggregator

The event aggregator to use.

eventData EntityKeyEventData<T>

The event data containing information about the deleted entity.

Type Parameters

T

The type of the entity.

PublishEntityDeletedEvent<T>(IEventAggregator, PrimaryKeys<T>)

Publishes an entity deleted event for the specified entity type and primary keys.

public static void PublishEntityDeletedEvent<T>(this IEventAggregator eventAggregator, PrimaryKeys<T> keys) where T : class

Parameters

eventAggregator IEventAggregator

The event aggregator instance.

keys PrimaryKeys<T>

The primary keys of the entity.

Type Parameters

T

The type of the entity.

Remarks

This method publishes an EntityDeletedEvent<T> with the specified primary keys of the entity.