Newbie Question

Posts   
 
    
jackbauer
User
Posts: 12
Joined: 08-Oct-2008
# Posted on: 08-Oct-2008 07:43:24   

Hi Everybody! Well I'm quite new in LLBLGen Pro, but all the people say is the best o/r mapper so i will try.

I just wanna make a question. I have in my made up bd, two tables

-Animal Id (PK) Name HabitatId (FK)

-Habitat Id (PK) Name Description

well now i wanna show in a gridview (ASP.NET) these columns

Animal Id | Animal Name | Habitat Name

then in my code-behind i will create the AnimalCollection and fetch all the data but how the grid can access the Habitat Name.

I hope you can help me with this, probably is very simple.

Thanks in advance!!!

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 08-Oct-2008 07:52:13   

jackbauer wrote:

Hi Everybody! Well I'm quite new in LLBLGen Pro, but all the people say is the best o/r mapper so i will try.

Yes it is sunglasses

jackbauer wrote:

well now i wanna show in a gridview (ASP.NET) these columns

Animal Id | Animal Name | Habitat Name

Check this: http://llblgen.com/TinyForum/Messages.aspx?ThreadID=12021&StartAtMessage=0&#66749

Hope helpful. Back here if you need further help wink

(Edit) When using Adapter TemplateSet and accessing related entities, you should use PrefetchPaths so the related entities will be fetched with you collection fetching.

David Elizondo | LLBLGen Support Team
jackbauer
User
Posts: 12
Joined: 08-Oct-2008
# Posted on: 08-Oct-2008 14:59:25   

Thanks daelmo!!!

You rock man!, thanks for the quickest response in a forum ever...

See you next time or i'm must say, in the next question...