DataAccessAdapter

Posts   
 
    
dianec
User
Posts: 11
Joined: 16-Mar-2007
# Posted on: 19-Mar-2007 15:55:27   

How come I cannot use DataAccessAdapter namespace??? I keep getting eror like namespace cannot be found. Do I need to creat a class with inheritance to DataAccessAdapterBase??? thanks

Aurelien avatar
Aurelien
Support Team
Posts: 162
Joined: 28-Jun-2006
# Posted on: 19-Mar-2007 16:17:32   

Hi,

can you explain your problem in detail and copy the error message ? Did you generate with Adapter scenario ?

Regards,

Aurélien

JimHugh
User
Posts: 191
Joined: 16-Nov-2005
# Posted on: 19-Mar-2007 16:21:46   

From the documentation.

Using the compiled assembly If compilation of the generated code was successful, you can reference the compiled dll from your project, which holds the code using the generated classes. You have to reference the following assemblies in your project, and add Imports / using statements with the specified namespaces at the top of the code files which contain types defined in the generated code or in the ORM support classes library.

dianec
User
Posts: 11
Joined: 16-Mar-2007
# Posted on: 19-Mar-2007 16:22:36   

I am trying to user dynamiclist or typedlist, and using DataAccessAdapter to run the query. The project is created using self serving, not Adapter

dianec
User
Posts: 11
Joined: 16-Mar-2007
# Posted on: 19-Mar-2007 16:34:04   

FIY, I do have using SD.LLBLGEN.Pro.DQE and SD.LLBLGEN.Pro.ORMSupportClasses in my code to use these namespaces.

Aurelien avatar
Aurelien
Support Team
Posts: 162
Joined: 28-Jun-2006
# Posted on: 19-Mar-2007 16:50:01   

Hi,

You can't use the DataAccessAdapter class if you generate the code with selfservising.

What do you want doing exactly ?

dianec
User
Posts: 11
Joined: 16-Mar-2007
# Posted on: 19-Mar-2007 16:56:03   

I want to populate a datagrid using Entity Collection, Relation Collections. So far I am able to join entityclass with relations, but the result set has all the fields in these tables, I want to limit just a few columns, and was told to use dynamic list or typedlist. thanks

Aurelien avatar
Aurelien
Support Team
Posts: 162
Joined: 28-Jun-2006
# Posted on: 19-Mar-2007 17:05:56   

Yes, you can use dynamic list or typedlist, but there is no need of DataAccessAdapter.

Have you seen the section Using typed views, typed list and dynamics lists in the selfservicing section in the doc ?

dianec
User
Posts: 11
Joined: 16-Mar-2007
# Posted on: 19-Mar-2007 17:12:41   

All samples showing using Adapter, do not any other ways. Please advise where I can find sample code for typedlist or dynamiclist for self serving. thanks

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 19-Mar-2007 18:08:25   

dianec wrote:

All samples showing using Adapter, do not any other ways. Please advise where I can find sample code for typedlist or dynamiclist for self serving. thanks

THey're also in the selfservicing section of the documentation. There are two sections, please consult the selfservicing part for this particular information.

Also, specify code if you want specific help on a code related problem. It's unclear now what exactly you're trying to do.

Frans Bouma | Lead developer LLBLGen Pro
dianec
User
Posts: 11
Joined: 16-Mar-2007
# Posted on: 19-Mar-2007 18:22:55   

I cannot find a forum for self serving... please advise

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 19-Mar-2007 19:08:35   

dianec wrote:

I cannot find a forum for self serving... please advise

No, in the manual simple_smile In the installation folder of llblgen pro, you'll find hte manual, the .chm file. Then go to the section mentioned earlier: Using typed views, typed list and dynamics lists in the selfservicing section.

Frans Bouma | Lead developer LLBLGen Pro