entity-framework-core

Audit trail with Entity Framework Core

强颜欢笑 提交于 2020-11-24 19:56:12
问题 I have an ASP.NET core 2.0 using Entity Framework core on a SQL Server db. I have to trace and audit all the stuff made by the users on the data. My goal is to have an automatic mechanism writing all what is happening. For example, if I have the table Animals, I want a parallele table "Audit_animals" where you can find all the info about the data, the operation type (add, delete, edit) and the user who made this. I already made this time ago in Django + MySQL, but now the environment is