entityCollection does not contain a definition for 'GetMulti'

Posts   
 
    
yogiberr
User
Posts: 432
Joined: 29-Jun-2005
# Posted on: 18-Mar-2007 17:00:45   

version 1.0.2005.1 final (self-servicing) VS2005 asp.net 2.0


hiya,

I create my entityCollection and populate it. Intellisense lets me use the "GetMulti" method.

Yet, when I try and view the page, I get the above error.My project refernces etc seem to be working, and sometimes, the entityCollection DOES get populated without compiler complaints..I've no idea why.

Can someone help?

    
dalHamShopEquip.CollectionClasses.EntCskStoreOrderCollection entOrderCollection = new dalHamShopEquip.CollectionClasses.EntCskStoreOrderCollection() ;
entOrderCollection.getm .GetMulti(null);

Many thanks,

yogi

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 18-Mar-2007 19:39:59   
dalHamShopEquip.CollectionClasses.EntCskStoreOrderCollection entOrderCollection = new dalHamShopEquip.CollectionClasses.EntCskStoreOrderCollection() ;
entOrderCollection.getm .GetMulti(null);

The code above should not compile. Could you post your real code?

Yet, when I try and view the page, I get the above error.My project refernces etc seem to be working, and sometimes, the entityCollection DOES get populated without compiler complaints..I've no idea why.

Sometimes? did you notice a pattern in this behavior?

David Elizondo | LLBLGen Support Team
yogiberr
User
Posts: 432
Joined: 29-Jun-2005
# Posted on: 18-Mar-2007 21:28:28   

?que onda tio?

Thanks for replying, sorry about the code:



dalHamShopEquip.CollectionClasses.EntCskStoreOrderCollection entOrderCollection = new dalHamShopEquip.CollectionClasses.EntCskStoreOrderCollection() ;
entOrderCollection.GetMulti(null);

I haven't noticed a pattern yet :-( In fact it always gives me this error now.I don't understand why it does this, while at the same time, intellisense tells me that this is a valid method call.

As I say it's a strange one.I've tried re-building the project etc, but it doesn't help.

Any help appreciated.

many thanks,

yogi

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 18-Mar-2007 21:53:17   

Hi yogi,

Could you regenerate code in an empty folder and see if everything its working? I suspect there are files making compile noise in your project folder.

David Elizondo | LLBLGen Support Team
yogiberr
User
Posts: 432
Joined: 29-Jun-2005
# Posted on: 19-Mar-2007 17:05:11   

hiya,

OK, I managed to generate the code into an empty folder, then refrence the generated DLL.That seems to work for the moment. Thanks.

Where does that leave me though.I want to include the dalProject WITHIN my solution, so that any time I regenrate the dalProject, then the client project sees the LATEST dll.

As far as I know, the only way I can do that is by including the dalProject in my solutions and adding it as a reference.If there is another, simpler way for me to always have latest generated dal DLL, then I'd be keen to hear.What woulkd you do if you were in my position?

many thanks,

yogi

bclubb
User
Posts: 934
Joined: 12-Feb-2004
# Posted on: 20-Mar-2007 01:24:10   

The way you describe is exactly how I do it. I've never had this error, but I've had others that were similar when I generated the code and had some checked-in to source control. Do you have any files set to read-only or checked-in at the time of generation?

yogiberr
User
Posts: 432
Joined: 29-Jun-2005
# Posted on: 20-Mar-2007 13:55:43   

hiya Brian,

Ok, I'll admit it, I don't use source control :-0 So that can't be the issue.I don't have anything set to read-only, as far as I know. I really don't know hat to do, apart from trial and error,but if anyone has any ideas, I'm all ears.

thanks,

yogi

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 22-Mar-2007 10:34:40   

Please check your asp.net project that you reference the same ormsupportclasses dll everywhere and also that the dll used at runtime is in the bin folder.

Frans Bouma | Lead developer LLBLGen Pro
yogiberr
User
Posts: 432
Joined: 29-Jun-2005
# Posted on: 23-Mar-2007 14:08:03   

hiya,

Ok, it seems to be working. I:

1) removed the dll's from my clientProject 2) rebuilt the dalProject 3) added the dalProject as a reference 4) added the orm support dll's that were in the dalProject to the BIN folder of the clientProject.

It seems to work fine now.If what I have done is incorrect / will potentially lead to more problems, please let me know.

cheers all,

yogi

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 23-Mar-2007 15:10:10   

It seems to work fine now.If what I have done is incorrect / will potentially lead to more problems, please let me know

That's perfectly fine.