Add ability to expand subcollections with WCF Data Services

Description

Here is the test for NHibernate.Test.Linq.ProjectionsTests that explains it all:

[Test]
public void ProjecitonWithCollection()
{
var query = (from o in db.Orders
select new { o, o.OrderLines }) // done by WCF DS: context.Orders.Expand(o => o.OrderLines) from the client
.ToList();
}

This fails with `ADOExceptionReporter:444 - System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Unable to cast object of type 'NHibernate.DomainModel.Northwind.Entities.OrderLine' to type 'System.Collections.Generic.ISet`1[NHibernate.DomainModel.Northwind.Entities.OrderLine]'.`.

So, this essentially prevents from expanding any collection properties from the client side, which is a major performance drawback.

Environment

None
100% Done
Loading...

Activity

Show:

Alex Zaytsev 
September 8, 2014 at 11:32 AM

Close issues resolved in 3.3.3

Alex Zaytsev 
January 26, 2013 at 1:04 PM

Ported back to 3.3.x 07c57ae24a8b1959ac2ec01a16c37f98a27f9ae9

Alex Zaytsev 
January 26, 2013 at 1:03 PM

Added support for multi-collection expansion in master f0c95ac2ba75bc2607eee29e20e18c48e5b3c85c

Alex Zaytsev 
January 25, 2013 at 11:51 PM

Expandsion of more than one collection is not supported yet

Alex Zaytsev 
January 25, 2013 at 11:30 PM

Fixed in master ( 7dc51fcdc915c158621b4bb90ede48bc4ba469d8 )

Fixed

Details

Assignee

Reporter

Labels

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created November 28, 2012 at 3:28 PM
Updated September 8, 2014 at 11:32 AM
Resolved January 25, 2013 at 11:30 PM
Who's Looking?