Hello all
in NH 3.1 SelectMany was fixed in Remotion
so this query works
var l3 = ses.Query<TestEntity>().Where(s => s.Id == new
Guid("....")).SelectMany(s => s.Details1).ToList();
but this do not help for WCF Data Services request execution :(
Like
http :// localhost:
2711/TestWcfDataService.svc/TestEntities(guid'0dd52f6c-1943-4013-a88e-3b63a1fbe11b')/Details1<http://localhost:2711/TestWcfDataService.svc/TestEntities%28guid%270dd52f6c-1943-4013-a88e-3b63a1fbe11b%27%29/Details1>
I am not sure which component remotion or system.data.services.dll generate
a little different LINQ for this (additional cast)
var l3 = ses.Query<TestEntity>().Where(s => s.Id == new
Guid("....")).SelectMany(s => *(IList<DetailType>)*s.Details1).ToList();
execution of this query crashes with next exception
{"Could not load type s.Details1. Possible cause: the assembly was not
loaded or not specified.":""}
it try creates instance by next type name: s.Details1
It seems for me that this behavior is similar to
http://216.121.112.228/browse/NH-2463 (also redundant typecast)
Next query also crashes in 3.1
var l3 = ses.Query<TestEntity>().Where(s => s.Id == new
Guid("....")).SelectMany(s => *(*s.Details1 as *IList<DetailType>)*).ToList();
So Nhib 3.1 + WCF DS still cannot support
1) Select details by filtered master entity
2) Projections
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.