Implementing Undo/Redo feature for dbcontext of Entity Framework

Source: Internet
Author: User
Implementing Undo/Redo feature for dbcontext of Entity Framework

Http://www.codeproject.com/Articles/474279/Implementing-Undo-Redo-feature-for-DbContext-of-En

 

I was curious about change tracking and property valuesDbContext And while playing with that I decided to write snapshot manager which wocould take snapshot of my each changes by storing entries and this manager also allow me to backward and forward my changesDbContext. The undo and redo features allow you to easily correct mistakes or based on some scenario, as well as free you to experiment with different routing and data mapping decisions. undo reverses the last action you performed med, and redo undoes the last undo action.

 

========================================================== ======================================

If dbcontext shares one item during the request, when the error entityvalidationerrors occurs in savechanges (), the subsequent normal submission and saving will be affected. The undo mentioned above can be used to solve the problem.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.