Linq to SQL problem

Linq to SQL problem

Old forum URL: forums.lhotka.net/forums/t/6718.aspx


lmatovic posted on Wednesday, April 01, 2009

Hi,
i havae a problem with cotext manager when trying to implement data access in the buisness class, i followed the example from the book, but VS cannot find use my class for contex reference, it reports error :

"''DataAccess.DataClasses1DataContext' could be found (are you missing a using directive or an assembly reference?) C:\Users\Luka Matovic\Documents\Visual Studio 2008\Projects\Dizajn\BiznisLogika\Artikal.cs 153 47 BiznisLogika"

Can someone help me ???

lmatovic replied on Wednesday, April 01, 2009

This is also one of errors that VS reports

Error 1 The type 'DataAccess.DataClasses1DataContext' cannot be used as type parameter 'C' in the generic type or method 'Csla.Data.ContextManager'. There is no implicit reference conversion from 'DataAccess.DataClasses1DataContext' to 'System.Data.Linq.DataContext'. C:\Users\Luka Matovic\Documents\Visual Studio 2008\Projects\Dizajn\BiznisLogika\Artikal.cs 149 24 BiznisLogika

jerry replied on Monday, February 08, 2010

hi,

 i encounter the same question. it caused by missing System.Data.Linq reference.

Hope it helps!Smile

 

Copyright (c) Marimer LLC