CSLA .NET

From Rockford Lhotka's Expert C# 2008 and VB 2008 Business Objects books

Linq to SQL problem

rated by 0 users
This post has 2 Replies | 1 Follower

Not Ranked
Posts 8
lmatovic Posted: Wed, Apr 1 2009 10:38 AM
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 ???

Not Ranked
Posts 8
lmatovic replied on Wed, Apr 1 2009 10:40 AM
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

Not Ranked
Posts 1
jerry replied on Mon, Feb 8 2010 9:01 PM

hi,

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

Hope it helps!Smile

 

Page 1 of 1 (3 items) | RSS

Please contact Magenic for your .NET consulting
and CSLA .NET mentoring needs.
Please consider making a donation to help support the ongoing development of CSLA .NET.

Make donation through PayPal - it's fast, free and secure!
Why donate?
Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems