does EF 4 have Audit and Logical Deletes support built in?
Does EF 4 have built in audit / logical delete support? After using SubSonic and getting use to how nicely this was handled automagically I was hoping I might have the same luck with EF 4 but h开发者_StackOverflow社区aven't found any documentation.
Not built in, no. You could build an audit feature fairly easily with the tracing provider. For soft deletes, you can handle ObjectContext.SavingChanges()
to change a delete to an update and filter "deleted" records at the data service layer.
精彩评论