NHibernate Envers like Audit Log with Entity Framework 6+

audit-logging entity-framework-6 orm

Question

When an entity is updated or deleted, NHibernate Envers effectively creates an audit log. For each auditable entity, it essentially generates an Audit table and writes a snapshot of the data into it. For instance, the audit log for Customer records will be saved in the CUSTOMER AUD table if Customer records are saved in the CUSTOMER table.

We use Entity Framework 6.1 in one of my projects. I have looked into a number of substitutes, such as AuditDBContext and Extensions for the EntityFramework, but none of them offer an out-of-the-box solution comparable to NHibernate Envers.

My concern is whether there is an out-of-the-box solution for EF 6+ that generates the Audit Log similarly to NHibernate Envers since I believe that this should be a very typical requirement.

1
4
6/17/2014 6:36:41 AM

Accepted Answer

ZZZ_tmp
1
9/5/2014 8:15:34 AM

Popular Answer



Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow