1

I'm trying to implement Audit.Net with Entity Framework, I need to create an audit table for each of my current tables and add some fields. Do I have to create all the audit entities like my actual ones and add a Migration to create it all in database? Doesn't it have some dynamic way to do it?

1 Answers1

0

The library Audit.EntityFramework does not provide any dynamic way to generate migrations for audit tables. If you have any idea on how to provide this, feel free to open a new issue and add your suggestions.

thepirat000
  • 12,362
  • 4
  • 46
  • 72
  • I've already implemented it, but the hard part was generating my entities all again, mapping the properties correclty to what I wanted, and implementing an interface with the aditional fields to create the tables correctly. At the moment I have no idea of how to solve this but thats something interesting to work on. – Douglas Brisola da Costa Jul 17 '19 at 13:20