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?

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

2 Answer(s)
  • User Avatar
    1
    aaron created
    Support Team

    That causes problems if event handlers make additional changes in database. It was the original way: aspnetboilerplate/aspnetboilerplate#1695

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    alexanderpilhar created

    I see - thanks for the information @aaron!

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)