Left Join in Subsonic3

Posted by muek on Stack Overflow See other posts from Stack Overflow or by muek
Published on 2010-03-08T19:33:11Z Indexed on 2010/03/08 19:36 UTC
Read the original article Hit count: 679

Filed under:
|

Hi there, I'm new in subsonic3, and I'm getting some errors when I try to use LeftJoin

    var q =

    from c in categories

    join p in products on c equals p.Category into ps

    from p in ps.DefaultIfEmpty()

    select new { Category = c, ProductName = p == null ? "(No products)" : p.ProductName };

The error is "System.Collections.Generic.Enumerable '...' cannot be used for parameter of type System.Linq.IQueryable

Does anyone had this error before? Did you fix it? Thanks

© Stack Overflow or respective owner

Related posts about subsonic3

Related posts about subsonic