Print Page | Close Window

EntityManager lifecycle

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2958
Printed Date: 13-May-2026 at 9:25pm


Topic: EntityManager lifecycle
Posted By: katit
Subject: EntityManager lifecycle
Date Posted: 13-Sep-2011 at 7:36am
I was wondering what is a good practice on creating and disposing Entity Manager in Silverlight application.
 
Should I create one in every ViewModel or should I create one in bootstrapper and use it as a service?
 
Having one will probably yeld better performance but keeping entities/states from many viewmodels might be bad idea.
 
What works for you best?



Print Page | Close Window