My collection has no GetMulti()

Posts   
 
    
apb
User
Posts: 41
Joined: 21-Oct-2008
# Posted on: 29-Dec-2008 21:51:48   

All I get is a GetScalar(). What do I need to change to get it to gennerate a GetMulti() method?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 30-Dec-2008 02:03:44   

This shouldn't happen. Some questions:

  • Are you sure you generated code for SelfServicing?
  • Do you get this on an specific EntityCollection or is the same no matter what collection is?
  • Please try to regenerate to an empty folder, use that project and see whether the problem persists.
  • Also could be a VS.Net intellisense cache thing. Do you get compilation errors if you write the GetMulti() call and compile the solution?
  • LLBLGen build and runtime library version?

(Edit) Also, please re-reference the appropiate DLL's (the SelfServicing generated project + LLBLGen ORMSupportClasses assembly). See this.

David Elizondo | LLBLGen Support Team
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39859
Joined: 17-Aug-2003
# Posted on: 30-Dec-2008 11:04:16   

And please make sure you generated selfservicing code instead of adapter?

Frans Bouma | Lead developer LLBLGen Pro
apb
User
Posts: 41
Joined: 21-Oct-2008
# Posted on: 30-Dec-2008 16:42:56   

Yes, self-sevice. 2.6.

Tried generating to a new folder and got the same -- no methods at all other than GetScalar() on any collections.

Tried using GetMulti() even though I could not see it -- complier could not see it either.

So then I rebooted the computer, figuring maybe Visual Studio was toast.

I then reloaded my project -- the same one, didn't even regenerate -- and all the methods were now there. Very strange.

Thanks for your help.

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 30-Dec-2008 21:23:52   

If you look in the actual generated code file for the collection classes, is the function actually there...?

Just wondering if it is being generated but not picked up by VS.

Have the templates been modified in any fashion ?

Can you try a fresh installation of LLBLGen on a clean machine and see if you still get the same results...

Thanks

Matt

apb
User
Posts: 41
Joined: 21-Oct-2008
# Posted on: 30-Dec-2008 21:31:16   

As I mentioned above, the issue was resolved by rebooting.

I'm not sure where all the methods are implemented since I couldn't find most of them (like GetMulti) in the collection classes based on my entities (I assume they must be in some base class).

Anyway, they are working now.

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 30-Dec-2008 21:37:04   

Sorry. missed that bit. Thanks for updating.