I\'m looking at using Entity Framework 6.1.1 with SQL Server 2008 R2.
Currently I\'m creating my models and database using the code-first EF feature. My basic use-c
You could look at Entity Framework Extended. It has audit functionality that I have used to log all changes to entities to XML. From the documentation:
The Audit Log feature will capture the changes to entities anytime they are submitted to the database. The Audit Log captures only the entities that are changed and only the properties on those entities that were changed. The before and after values are recorded. AuditLogger.LastAudit is where this information is held and there is a ToXml() method that makes it easy to turn the AuditLog into xml for easy storage.
The AuditLog can be customized via attributes on the entities or via a Fluent Configuration API.
UPDATE:
Entity Framework Extended is no longer supported since 2015. Please refer to Entity Framework Plus for this feature.