Base solution for your next web application
Open Closed

Feature Request: Predefined Events > EntityBefore[...]EventData<TEntity> #6867


User avatar
0
alexanderpilhar created

6.9.1, Angular, .NET Framework

I was wondering if it was possible for you (ASPNETZERO Team) to implement some new predefined events that will be triggered before actual changes are made to repository, so we could register some event-handlers like:

  • EntityBeforeCreatingEventData<TEntity>
  • EntityBeforeUpdatingEventData<TEntity>

I'm asking because when handling existing 'ing'-events, changes to the repository are already 'commited' (but the transaction is not) resulting in:

  • Entities that already have an ID (EntityCreatingEventData<TEntity>)
  • Entities that already have all changes applied to them (EntityUpdatingEventData<TEntity>)

What do you think about it?


2 Answer(s)