I’m still reading the excellent C# 3.0 in a Nutshell, by Ben and Joseph Albahari. It answers a popular question: how do I use a DataContext object in LINQ within a multi-tier application?
According to the authors, you cannot use the DataContext at an application or static level, or use a single instance for all requests, [...]
Lesen Sie den vollständigen Eintrag unter http://richardbushnell.net/index.php/2008/01/03/using-linq-to-sqls-datacontext-in-a-multi-tier-application/