Microsoft
Software
Hardware
Network
Question : Entity Framework Detecting Changes
I am currently using the entity framework as a data layer for an application. I am still learning the EF so i might have some of the nameing conventions off.
I have a context Person object that i am displaying to the user via a group of bound controls. When the user closed the form i would like to detect whether any changes have been made to the object. If there have been, then i will prompt them to save the changes.
I have everything working well, but i can't seem to figure out how to detect if the object has changed. I see that my Context Object has a .DetectChanges, but that doesn't seem to return what i would expect.
Is there a way to tell whether changes has been made to an object in the EF?
Thanks in advance.
Answer : Entity Framework Detecting Changes
Telerik OpenAccess has an IsDirty flag, but EF does not appear to have this.
However, this article shows how to implement it.
http://harmneervens.blogsp
ot.com/201
0/02/how-t
o-find-dir
ty-
propert
y-in-entit
y.html
Random Solutions
Ms Access/Outlook Appointment system
Total Active Calls 1 = Active Channels 2 Trixbox
AD and Terminal Service setup
text or image positioning in HTML table
Pictures in Form with columns
Black Screen After PC Boot
Client's protection in Symantec systems center v.10.0.0.2.2000
Buying and Upgrading office 2007 to 2010
Java invalid syntax error passing variables to SP
How to create a Group Policy in SBS 2008 server - to allow users admin access to local computers ?