So I'd really like to use the Entity Framework in my next project but I have one pressing need that I'm not quite sure how to solve with EF. That is the task of auditing. With LINQ to SQL you can implement the partial method Insert / Update / Delete for each
of the classes that need to be audited. Ie. If the class is User then you'd implement "InsertUser", log the action, and let LINQ to SQL do the actual insert. However, I can't find anything like that with Entity framework. Any thoughts?
If everything happens for a reason what is the reason for this error?
Contributor
2818 Points
1308 Posts
How can you implement auditing with EF?
Mar 15, 2009 01:15 PM|mpaterson|LINK
Star
8101 Points
2000 Posts
ASPInsiders
MVP
Re: How can you implement auditing with EF?
Mar 15, 2009 01:32 PM|docluv|LINK
I created Repoistory classes to perform any data interactions, like CRUD, etc. You can do the same thing.
Progressive Web App Expert
https://love2dev.com
@ChrisLove
Contributor
2818 Points
1308 Posts
Re: How can you implement auditing with EF?
Mar 15, 2009 02:20 PM|mpaterson|LINK