Triggers in Entity Framework - Need advice
Posted
by jaklucky
on Stack Overflow
See other posts from Stack Overflow
or by jaklucky
Published on 2010-04-06T19:49:06Z
Indexed on
2010/04/06
19:53 UTC
Read the original article
Hit count: 314
entity-framework
Hi all,
I am new to Entity Framework and please pardon my ignorance. We have a simple application written using SQL Server and ADO.Net. Now we have got a new requirement that, whenever a particular rows get updated by our application, some business logic has to happen. I have been looking into Triggers in SQL server and it looks like we can do it using triggers. I am also looking at Entity Framework's OnPropertyChange capability. Is it possible to do it with "OnPropertyChange"?
I mean, Can I create a model and implement "OnPropertyChange" method? And when our application modifies the rows using ADO.Net, then will it fire "OnPropertyChange" event so that my custome code in "OnPropertyChange" excutes?
Thank you in advance for your inputs,
Suresh
© Stack Overflow or respective owner