EntityFramework.Triggers icon indicating copy to clipboard operation
EntityFramework.Triggers copied to clipboard

Adds events for entity inserting, inserted, updating, updated, deleting, and deleted

Results 8 EntityFramework.Triggers issues
Sort by recently updated
recently updated
newest added

Hi, love this library! What's the right way to use async code in the trigger body? Like this pseudo-code example: ``` configure.Triggers().Inserted .Add( async entry => { var foo =...

I'm not sure if this is by design, but when Deleted trigger is fired, if entry.Entity has any foreign key fields, those fields are null. This makes this handler very...

We are using .netcore 2.2 We are adding a trigger to the updating action and another trigger (GlobalUpdateFailed) to undo what the updating trigger does when the DB Save fails.  ...

Triggers.GlobalInserting.Add(entry => { var service = entry.Service; entry.Entity.CreatedAt = DateTime.Now; entry.Entity.UpdatedAt = DateTime.Now; entry.Entity.CreatedById = service.CurrentUser.Id; entry.Entity.UpdatedById = service.CurrentUser.Id; });

Hi, When i override SaveChange and call SaveChangesWithTriggers. AUDIT.NET Library does not store event in database. is it possible to undertant how SaveChangesWithTriggers Work exactly ? When i remove the...

I've created a method using this library to control update operations that looks like this: Triggers.GlobalUpdating.Add(handler => { if (!ChangeAllowed(handler.Original, handler.Entity)) { handler.Cancel = true; } }); The problem I...

Hello I've a question about using your EF.Triggers library together with Transactions and transactions scopes. We're using transactions when modifying several database entries, so that if one operation fails/ is...

Are triggers capable of handling the cascading delete that occurs if you remove records from a navigation collection where cascading deletes are set up? No explicit remove from the context...