简体   繁体   中英

paper_trail equivalent for EntityFramework

Hi, do you know the gem 'airblade/paper_trail' equivalent that you can use with EntityFramework in .NET? I most care about version control for each record in the database.

Personally I create logging tables that match in structure to the entity tables that I want to track and I add a couple of columns like "Action, ModifiedOn, ModifiedBy". Next I add a trigger to the entity's table to insert a new record into my logging table with all the data from the record as well as my additional audit data.

If however you'd prefer to use a 3rd party library I found EF Audit after a quick google search and it may work for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM