Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I loss my data when Internet disconnected or system shut down. When I click on save button and the same time if Internet disconnected or system shut down then master data is saved but the other data could not save and it shows error on next attempt.
Posted
Comments
Sampath Lokuge 26-Jun-14 6:46am    
Are you using Entity framework or what ? Can you share your db access code snippets ?
Sergey Alexandrovich Kryukov 26-Jun-14 13:58pm    
You cannot save what is already lost. It sounds like you need transactions.
—SA
Sunasara Imdadhusen 27-Jun-14 2:04am    
You can use Transaction it will resolve your problem. It will do complete commit on success or rollback on failure.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900