Entity Framework ObjectContext re-usage
Posted
by verror
on Stack Overflow
See other posts from Stack Overflow
or by verror
Published on 2010-04-27T19:04:18Z
Indexed on
2010/04/27
19:13 UTC
Read the original article
Hit count: 361
ASP.NET
|entity-framework
I'm learning EF now and have a question regarding the ObjectContext:
Should I create instance of ObjectContext for every query (function) when I access the database?
Or it's better to create it once (singleton) and reuse it?
Before EF I was using enterprise library data access block and created instance of dataacess for DataAccess function...
© Stack Overflow or respective owner