This question is locked. New answers and comments are not allowed.
Hi I am having an issue trying to figure out how to tell if data is dirty.using the example in the manual creating a new instance of openaccesscontext
To save changes i would use dbcontext.savechanges()
But after making changes to the dbcontext how can i tell if the dbcontext is dirty? ie when closing a winform check if any changes have been made. i found some info in web on objectcontainer.isdirty but i cant find a way to get form dbcontext to that.
SofiaCarRentalDbContext dbContext = new SofiaCarRentalDbContext(); |
But after making changes to the dbcontext how can i tell if the dbcontext is dirty? ie when closing a winform check if any changes have been made. i found some info in web on objectcontainer.isdirty but i cant find a way to get form dbcontext to that.