开发者

mimicking triggers in LINQ

开发者 https://www.devze.com 2023-01-05 05:59 出处:网络
I have a question about implementing triggers at hi level, c# .net code; Is that possible at all? I have to develop a browser on exiting database. I need to have some triggers on some oftables and I c

I have a question about implementing triggers at hi level, c# .net code; Is that possible at all? I have to develop a browser on exiting database. I need to have some triggers on some of tables and I cannot,allowed, do this with sql trigger commands? I am using linq for achieveing other functionalities and making connections. However not quite sure if I could benefit from some trigger micking approaches as well here. Thank you for your help开发者_如何学C.


Are Events and Delegates what you're after?

Also, when you generate your dbml, it creates partial methods OnXXXChanging() OnXXXChanged() for each field, you could implement something in there to "trigger" an action should a field value change.

0

精彩评论

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