EntityFrameworkCore.Triggered
EntityFrameworkCore.Triggered copied to clipboard
Triggers for EFCore. Respond to changes in your DbContext before and after they are committed to the database.
Apologies if I'm being slow with this or I'm failing to find the documentation for it. I have existing system, large and complex. I have used this before for smaller...
Whenever I do insert an entity with its related entity, the trigger is executed twice. I don't think there's a problem in my code though. `CreateStockInputWindow.xaml.cs` ``` ... dbContext.StockInputLogs.Add( new...
Hello Thank you for this wonderful extension, i have an issue whene i try to fire the trigger after deleteing IColletion of enyity.
ATrigger as below. public ATrigger : IAfterSaveTrigger, IAfterSaveCompletedTrigger { private List _aNames = new List(); public Task AfterSave(ITriggerContext context, CancellationToken cancellationToken) { if (context.ChangeType == ChangeType.Added) { this._aNames.Add(context.Name); return Task.CompletedTask;...
New extensions are now exposed to get the DbContext/Entry straight from the ITriggerContext. This will only work if the concrete type of ITriggerContext is of type TriggerContext.
This issue may prove tricky to repro, so I'll explain the issue and you can advise on further action. This image shows some logs containing the HttpContext TraceIdentifier, the DbContext...
Hello I want to create an audit for those properties whose old and new values are different. Is there a way to detect which property is changed on the AfterSave...
Hello I have a problem with the triggers. According to examples I can implement two different interfaces - IAfterSaveTrigger - IAfterSaveCompletedTrigger From my understanding there can be many calls to...
I have a breakpoint in my Trigger. The trigger works but skips the breakpoint... Not really a bug, however...
Accessing `UnmodifiedEntity` on a type with a ComplexType on it causes an exception. It doesn't matter if the changed value is inside the complextype or directly on the entity: accessing...