[Modeling-users] dirty deeds done dirt cheap
Status: Abandoned
Brought to you by:
sbigaret
|
From: Marcos D. <md...@vi...> - 2004-03-24 20:20:11
|
User-Agent: Mutt/1.3.28i
I have the following problem: I have a form where I can edit
Modeling Entities. if you perss a button, it gets saved (the changes, I
mean). but if you press that other button, it should revert any changes
done so far. the Modeling Entities are not saved yet (if you saved
alredy, I'm sorry :)
flipping the docs I see that EditingContext is capable of tell
wether it's dirty or not. but I think it would be better if I could ask
the Entity if it's dirty or not; and, being dirty, ask it to ignore any
changes not saved (which I think will resort to reload from the db)...
note that this seems to have nothing to do with undo/redo, or at
least I think so.
|