开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜