How To Track Entity Changes With EF Core | Audit Logging

Published: 14 October 2022
on channel: Milan Jovanović
27,780
1k

☄️ Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt
📌 Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ
🚀 Support me on Patreon to access the source code:   / milanjovanovic  

Tracking entity changes can be cumbersome to implement. However, with EF Core there is an easy way to implement entity change tracking as a cross-cutting concern. In this, I'll show you how you can track changes on your entity, write the code for tracking changes once, and never have to worry about it again.

3 Ways To Create Middleware In ASP.NET Core
https://www.milanjovanovic.tech/blog/...

Join my weekly .NET newsletter:
https://www.milanjovanovic.tech

Subscribe for more:
https://www.youtube.com/c/MilanJovano...

Chapters
0:00 What is Auditing?
0:30 IAuditableEntity
2:30 Using EF interceptors for auditing
6:09 Configuring the interceptor
7:27 Auditing in action


Watch video How To Track Entity Changes With EF Core | Audit Logging online, duration hours minute second in high quality that is uploaded to the channel Milan Jovanović 14 October 2022. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 27,780 times and liked it 1 thousand visitors.