What "using" statements do I need at top?

Posts   
 
    
DauntlessDavid avatar
Posts: 12
Joined: 19-Aug-2006
# Posted on: 19-Sep-2006 20:00:33   

I am trying to write my first simple 'adapter' project and have created the both 'EvidApp' projects using the Designer. I have added these projects to my VS.NET 2005 web applications and run a successful build. Now I try to add the LLBLGenProDataSource2 datasource and I can't configure it because it can't see the required namespaces. Here is what I have on the top; using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using EvidApp; using EvidApp.HelperClasses; using EvidApp.FactoryClasses; using EvidApp.RelationClasses; using SD.LLBLGen.Pro.ORMSupportClasses; using SD.LLBLGen.Pro.DQE.SQLServer; What am I missing? Here are the error message when I try to build this now; Error 1 The type or namespace name 'SqlServer' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) C:\G4\Evidence\LLBLGen\DatabaseSpecific\DataAccessAdapter.cs 16 19 EvidAppDBSpecific Error 2 The type or namespace name 'DQE' does not exist in the namespace 'SD.LLBLGen.Pro' (are you missing an assembly reference?) C:\G4\Evidence\LLBLGen\DatabaseSpecific\DataAccessAdapter.cs 24 22 EvidAppDBSpecific Error 3 The type or namespace name 'DQE' does not exist in the namespace 'SD.LLBLGen.Pro' (are you missing an assembly reference?) C:\G4\Evidence\ASPEvid\Default.aspx.cs 15 22 C:...\ASPEvid\

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39616
Joined: 17-Aug-2003
# Posted on: 19-Sep-2006 21:36:23   

You don't need: using SD.LLBLGen.Pro.DQE.SQLServer;

that, because that's only needed in the generated code.

You should add a reference to the DBSpecific project to the Sqlserver DQE assembly, however that should already be there.

So: - to the dbgeneric project, there should be a reference to the ORMSupportClasses (.NET 2.0 one) assembly - to the dbspecific project, there should be a reference to the SqlServer DQE assembly (.NET 2.0 one, not the CF.NET one!) - to your own project (e.g. webapp, winforms app, the one where you use the generated code) you add a reference to the two generated projects (DBspecific and dbgeneric) and you add a reference to the ORMSupportClasses (.NET 2.0 one).

Is this the case in your solution?

Frans Bouma | Lead developer LLBLGen Pro