can't bind data to grid

Posts   
 
    
ironcross
User
Posts: 31
Joined: 12-May-2006
# Posted on: 16-Nov-2006 14:39:05   

i can't find error hier

CompaniesCollection col=new CompaniesCollection();
 DataAccessAdapter adapter = new DataAccessAdapter();
adapter.FetchEntityCollection(col,null);
c1TrueDBGrid1.DataSource = adapter;

can anybody show me what is problem.

it worked first but after reopening project it generates error

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 16-Nov-2006 14:40:51   

c1TrueDBGrid1.DataSource = col;

ironcross
User
Posts: 31
Joined: 12-May-2006
# Posted on: 16-Nov-2006 14:58:17   

no ,it displays error hier

adapter.FetchEntityCollection(comp,null);

ironcross
User
Posts: 31
Joined: 12-May-2006
# Posted on: 16-Nov-2006 14:59:20   

excuse me adapter.FetchEntityCollection(col,null);

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 16-Nov-2006 15:08:26   

WIthout even knowing what the error is (and is it an exception? If so, what's the stacktrace?) we're pretty much in the dark what it might be. PLease provide more information.

Frans Bouma | Lead developer LLBLGen Pro
ironcross
User
Posts: 31
Joined: 12-May-2006
# Posted on: 16-Nov-2006 15:30:18   

Error 1 The best overloaded method match for 'SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.FetchEntityCollection( SD.LLBLGen.Pro.ORMSupportClasses.IEntityCollection2, SD.LLBLGen.Pro.ORMSupportClasses.IRelationPredicateBucket)' has some invalid arguments C:\working model\Form2.cs 117 13 Docs Error 2 Argument '1': cannot convert from 'Docs.CollectionClasses.CompaniesCollection' to 'SD.LLBLGen.Pro.ORMSupportClasses.IEntityCollection2' C:\working model\Form2.cs 117 43 Docs

I can't find somethin hier except this

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 16-Nov-2006 15:35:21   

Are using the SelfServicing model or the Adapter model?

I'm asking this because CompaniesCollection is generated when you use the SelfServicing model, while you are using the Adapter model functionality -> adapter.FetchEntityCollection.

ironcross
User
Posts: 31
Joined: 12-May-2006
# Posted on: 16-Nov-2006 15:44:50   

i first created SelfServicing model second adapper third joined it together (i added only DatabaseSpecific from adapter)

ironcross
User
Posts: 31
Joined: 12-May-2006
# Posted on: 16-Nov-2006 15:49:47   

I think i found my fault: i am not using collections of adapter i use collections of Self servicing that is why it didn't work