Closed chetankhargone closed 5 years ago
Hi @chetankhargone
It looks like you are defining your own DbContextWithTriggers
class, and also you aren't inheriting from it.
What you want to do is inherit your SampleAppContext
from the DbContextWithTriggers
class included in this library (so, delete your DbContextWithTriggers
class). Like this...
class SampleAppContext : EntityFramework.Triggers.DbContextWithTriggers {
}
When I am inserting new entity, the Trackable propeteries Inserted & Updated is not getting the right value.
Please refer the app src at the below repository. https://github.com/chetankhargone/Triggers-in-EF-COre.git
Can you please check & suggest ?
Thanking You.