This project is read-only.

What´s the difference between Store and Commit? (CLOSED)

Aug 11, 2013 at 9:01 PM
I´m creating a Repository and an unitofwork to manage data. Does the Store() method save the data in the opened file? should it be commited?
Is there any way to manage data as in a DbContext in order to Insert, Update and Delete data and be saved afterwards in an unique transaction?
Thanks in advance.
Aug 13, 2013 at 8:00 PM
Store is only adding the item to db, and you need to commit the data (or use using around the instance of Odb) to make sure there are in db file. Without that, the data will not be put into db (it will be accessible from transaction which is stored in memory), but after stopping the app without the commit you will lose the data.

Yes, normally by wrapping creation of IOdb instance with using statement.