From: Jiří Č. <ji...@ci...> - 2016-03-26 09:21:01
|
> > d) Do I need to dispose the the context on closing the window? > Not only on that. you should create and dispose context for every > action you do with a database: insert, delete, update, query etc. That doesn't make any sense. If I dispose context after query then I can't update the entities without attaching them to new context. Waste of resources. > > 3. As long the user does not explicit reload the data I am working in a connected mode > You don't have to be always connected for any reason. True. But for fat client type applications this is then way easier than disconnected scenarios. -- Mgr. Jiří Činčura Independent IT Specialist |