design patterns - Persistence and rollback, model, C# -
i asked little while ago question rollback, have new related question have answer to, input.
so i'm building persistence ignorant object model , i'm thinking roll back. i've looked @ how nhibernate manages it, , suggests i'll need have own implementation on domain objects if want able cancel unsaved changes.
so i've seen ieditableobject in componentmodel succinctly describes problem. microsoft's example goes along description pretty have done, have private struct contains actual data, , when data changed original saved , new 1 created. , inotifypropertychanged notify object has reset.
has done similar? can suggest better pattern?
i'd suggest read of rocky lhotka's stuff on framework, csla.net: http://www.lhotka.net/. not sure i'd recommend using it, covers things rollback , business object data consistency quite thoroughly.
Comments
Post a Comment