开发者

Is there a way to define a SQL trigger-like mechanism in EF4?

开发者 https://www.devze.com 2023-01-26 08:44 出处:网络
I need to create an audit log like feature where most of one table\'s fields are copied to another when they are modified.Normally, I would create 开发者_StackOverflowa SQL trigger to do this.

I need to create an audit log like feature where most of one table's fields are copied to another when they are modified. Normally, I would create 开发者_StackOverflowa SQL trigger to do this.

Is there an Entity Framework 4 equivalent, where upon modifying Entity X I could modify Entity Y?


There are some approaches out there on using ObjectContext.SaveChanges and the ObjectStateManager to perform such auditing requirements in EF

Link

Link

0

精彩评论

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