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)
-
1
That causes problems if event handlers make additional changes in database. It was the original way: aspnetboilerplate/aspnetboilerplate#1695
-
0
I see - thanks for the information @aaron!