Hello, It's a weird question I know :)
I really like to do the things in the right way and I have a doubt.
I know about making a interface, using DI...
My question is:
Is better to have a method like "SaveChanges" that you have to call manually everytime you add / delete / whatever an object?:
_repo.Add(blah);
_repo.SaveChanges();
Or is better to save changes inside every method that modify the data?
On the other hand, should I have the connection always opened or have I to close it?
Im learning DB4O and I have a Close method that I call when I have to use the repo on another place (Like in another windows, I close before I open the window).
Thank you.