NickStrupat / EntityFramework.Triggers

Adds events for entity inserting, inserted, updating, updated, deleting, and deleted
MIT License
373 stars 46 forks source link

Support Asp.Net (Core) IdentityDbContext #27

Closed fileman closed 6 years ago

fileman commented 6 years ago

I have added a new class IdentityDbContextWithTriggers that inherit from Asp.Net (Core) Identity IdentityDbContext, updated nuget dependencies to lastest versions, all test passed. Unfortunately, more dependencies are needed, maybe it's better to create a different NuGet package.

NickStrupat commented 6 years ago

Yea I think it needs to be a new project+package. Alternatively, you can just inherit from IdentityDbContext and override the methods shown here:

https://github.com/NickStrupat/EntityFramework.Triggers#manual-overriding-to-enable-triggers

fileman commented 6 years ago

I'm agree, maintenance of another project could be more complex than using manual override.