asp.net mvc - Being able to save (multiple) changes without affecting database - structural issue -


i'm developing business web application maintain database several tables. 1 of requirements 1 should able "save work" without affecting database , later pick , continue working. multiple "savings" must supported.

this administration tool developed in asp.net mvc4 or microsoft's lightswitch, haven't decided yet.

the problem have don't know how solve structurally, there known techniques problem? need point me in right direction, i'm stuck here..

edit: i'll try explain further scenario

  1. i make change 1 row , save, change should visible me (not affect main database).

  2. i realize change in 1. bad , choose start on changing data in same row, make change row. save these changes (but me)

  3. now have 2 savings (from step 1 , 2), change mind , changes made in 1. correct , open "savefile" , commit changes main databse. i'll delete "savefile" step 2.

hope makes situation more clear.

thanks

the easiest way can think of let database work you.

you could:

  1. just add type of "status" column ("committed", "uncommitted" etc) table, & filter out "uncommitted" records in grid displays "real" data. can filter different way in editing grid, shows "uncommitted" records, or if save id instead of status, if want see own records.
  2. add table hold uncommitted records, rather "pollute" actual table columns.

does make sense?


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -