开发者

does EF 4 have Audit and Logical Deletes support built in?

开发者 https://www.devze.com 2023-01-17 11:59 出处:网络
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开发者_S

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消