LINQ in Action roller

Unable to clone DataContext - Constructor on type <T> fails (beta 1).

Hello I've created a concrete DataContext with approx. 15 tables (no sproc mappings). For performance reasons, I'm cloning the context. However, when invoking the .Clone() method on the context, I'm getting the following exception: "Constructor on type 'SphereWorks.Cms.Context.Data.CmsDataContext' not found." Code Snippet public Page GetPageEntity( Guid targetID) { using ( CmsDataContext db = new CmsDataContext ( SqlFactory .SqlConnectionString)) { CmsDataContext clone = db.Clone() as CmsDataContext Read More...
Published Wednesday, April 25, 2007 9:15 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication