Linq to Sql Generated Code Missing references

Posts   
 
    
palety
User
Posts: 2
Joined: 24-Dec-2008
# Posted on: 10-Aug-2009 17:38:20   

I have created a new project. I am trying to generate and compile code using 'Linq to Sql' template group. In task queue I started with adding the retrievalprocedures task which required some helper classes.Helper Classes in turn required some other classes.So at the end I ended up adding all the available tasks.

I have the following references to my VS 2008 project

SD.LLBLGen.Pro.LinqSupportClasses.NET35 - Version : 2.6.0.0

SD.LLBLGen.Pro.ORMSupportClasses.NET20 - Version: 2.6.0.0

LLBLGen Pro Version 2.6

When I try to compile the generated code, I am getting the following errors.

Error 1 The type or namespace name 'DaoClasses' does not exist in the namespace XXXDAL(are you missing an assembly reference?) C:\Projects\XXX\XXX\XXXDAL\Linq\LinqMetaData.cs Error 2 The type or namespace name 'DaoClasses' does not exist in the namespace XXXDAL(are you missing an assembly reference?) C:\Projects\FX360\XXXDAL\FactoryClasses\EntityFactories.cs Error 3 The type or namespace name 'CollectionClasses' does not exist in the namespace XXXDAL(are you missing an assembly reference?) C:\Projects\FX360\XXXDAL\FactoryClasses\EntityFactories.cs Error 4 The type or namespace name 'DaoClasses' does not exist in the namespace XXXDAL (are you missing an assembly reference?) C:\Projects\FX360\XXXDAL\EntityClasses\FileFormatsEntity.cs Error 5 The type or namespace name 'CollectionClasses' does not exist in the namespace XXXDAL (are you missing an assembly reference?) C:\Projects\FX360\XXXDAL\EntityClasses\FileFormatsEntity.cs Error 6 The type or namespace name 'CommonEntityBase' could not be found (are you missing a using directive or an assembly reference?) C:\Projects\FX360\XXXDAL\EntityClasses\FileFormatsEntity.cs

Am I missing any references here?

Thanks

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 11-Aug-2009 06:53:49   

First of all, do you mean Linq2Sql or Linq2LLBL?

David Elizondo | LLBLGen Support Team
palety
User
Posts: 2
Joined: 24-Dec-2008
# Posted on: 11-Aug-2009 15:17:36   

Linq To SQL.

From Project -> Generate -> General Settings -> Template Group I have selected Linq to Sql

Thanks

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 11-Aug-2009 21:53:17   

Please could you try generating into a clean folder, just to make sure. If that does not work, please can you post your .lgp file for us to take a look.

Thanks

Matt

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39861
Joined: 17-Aug-2003
# Posted on: 12-Aug-2009 09:38:02   

Linq to sql doesn't need our runtime library. The generated vs.net project should reference the proper .NET 3.5 assemblies.

Frans Bouma | Lead developer LLBLGen Pro