DataPortal.Fetch using Datacontext query

DataPortal.Fetch using Datacontext query

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


Wal972 posted on Wednesday, March 25, 2009

Can someone please interpret because i can't figure it out

Error 1 The type 'KISS.DalLinq.KissBDbDataContext' cannot be used as type parameter 'C' in the generic type or method 'Csla.Data.ContextManager<C>'. There is no implicit reference conversion from 'KISS.DalLinq.KissBDbDataContext' to 'System.Data.Linq.DataContext'. E:\Source CS\KISS\HumanResources.Library\Tax\TaxScale.cs 74 45 HumanResources.Library

Thanks

Ellie

RockfordLhotka replied on Thursday, March 26, 2009

Check your KissBDbDataContext class to see what it inherits from. Apparently it doesn't inherit from the DataContext base class, which is a requirement when using the CSLA ContextManager.

Wal972 replied on Thursday, March 26, 2009

Hi Rocky,

I thought it had, but i will check again.

Thanks

Ellie

MikeMcClintock replied on Friday, May 29, 2009

Mine is inheriting from DataContext, but getting same error.

MikeMcClintock replied on Friday, May 29, 2009

Ok, I was missing a reference to system.data.linq

 

I had system.linq but not system.data.linq

 

 

Copyright (c) Marimer LLC