ContainedCollection with LinqMetaData

Posts   
 
    
ianvink
User
Posts: 394
Joined: 15-Dec-2006
# Posted on: 30-Jul-2008 18:29:04   

In an ASP.NET app.

How do I fill the e.ContainedCollection object on a PerformSelect? In the old days I'd call the Adpater.FetchEntityCollection() method.

Here's my simple Linq query:

var items =  (ILLBLGenProQuery) from item in linq.AAA
                   where item.IsAAA == false
                   orderby item.AAA
                    select item;

EntityCollection<AAAEntity> AAAEntities = items.Execute<EntityCollection<AAAEntity>>();


daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 31-Jul-2008 05:28:43   

You can't use ContainedCollection directly as it is read-only. You maybe need to:

_yourLLBLGenDatasourse.EntityCollection = items.Execute<EntityCollection<AAAEntity>>();
David Elizondo | LLBLGen Support Team