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
select sintax in crystal reports 2008
Add custom disclaimer to new IMs
I need a motherboard or video card with two analog capable outputs? Hard to find since DVI-I has been replaced by DVI-D on most. Any suggestions?
Can I have code created in VBA to allow Outlook Email messages to save to sharepoint folders?
TMOUT variable does not work on rbac and sftp.
ESXi 4 and Dell MD3000 - getting them to work together
Increasing number of open partitions in Sybase 15
Simple car-like color picker
How to configure IIS 7.5 to use ipv4 IP addresses in log files
Have Access report only show Amount data if no PayAmt data