One to many associations

141 views
Skip to first unread message

pbz

unread,
Jan 29, 2012, 2:03:22 AM1/29/12
to Business Logic Toolkit for .NET
On this page: http://bltoolkit.net/Doc.LinqAssociations.ashx the
example with OrderDetails leads me to believe that one to many
associations are possible, but every time I try I get:

No coercion operator is defined between types 'MyType' and
'System.Collections.Generic.List`1[MyType]'.

In none of the unit tests I could find an example that would do this.
Here's an example of what I'm talking about:

from p in Parent
where p.Id == 123
select new { p.Name, p.Children }

So basically it would return the name of the parent and a list of
Child objects. Is this possible with BLToolkit? Thanks.

shakiro...@gmail.com

unread,
Feb 29, 2012, 12:26:41 PM2/29/12
to blto...@googlegroups.com
+1
I have same promblem.
Reply all
Reply to author
Forward
0 new messages