LLBLGenProDataSource2, EntityCollections, Fields on Related Fields

Posts   
 
    
lotek
User
Posts: 56
Joined: 14-Sep-2005
# Posted on: 28-Mar-2008 18:27:43   

I have an LLBLGenProDataSource2 which i am binding an EntityCollection to. The EntityCollection has Fields on Related Fields defined which are displayed in a GridView. When i sort the gridview, i get an error.

Is there any way to sort on these related fields on the server using LLBLGenProDataSource2?

On an another topic. I am still a little fuzy on best practices for when to use and entityCollection and when to use a typedView. Is there a general rule of thumb?

Thanks, Matt

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 29-Mar-2008 05:47:59   

lotek wrote:

I have an LLBLGenProDataSource2 which i am binding an EntityCollection to. The EntityCollection has Fields on Related Fields defined which are displayed in a GridView. When i sort the gridview, i get an error.

Is there any way to sort on these related fields on the server using LLBLGenProDataSource2?

Please provide the error info and the LLBLGen and RuntimeLibraries version (http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=7720).

lotek wrote:

On an another topic. I am still a little fuzy on best practices for when to use and entityCollection and when to use a typedView. Is there a general rule of thumb?

Well, basically TypedViews are read-only lists based on a database view, EntityCollection at the other hand are collections of some certain type of Entity that can be fetched and saved back to the database. For more info read the documentation: LLBLGenPro Help - Using the generated code - Adapter - Using TypedViews, TypedLIsts and DynamicLists and LLBLGenPro Help - Using the generated code - Adapter - Using the entity collection classes

David Elizondo | LLBLGen Support Team