Hello I have tried to combine NH 3.0 & WCF data services following this article http://weblogs.asp.net/cibrax/archive/2010/08/13/nhibernating-a-wcf-data-service.aspx
It works partially for requests like http://localhost:2711/TestWcfDataService.svc/TestEntities http://localhost:2711/TestWcfDataService.svc/TestEntities(guid'.......') http://localhost:2711/TestWcfDataService.svc/TestEntities(guid'........')/Setup1 //This is reference to setup from main entity http://localhost:2711/TestWcfDataService.svc/TestEntities(guid'........')?$expand=Details1 but do not works for request http://localhost:2711/TestWcfDataService.svc/TestEntities(guid'0dd52f6c-1943-4013-a88e-3b63a1fbe11b')/Details1 //This is multiple details for main Entity NH generates exception [Remotion.Data.Linq.Parsing.ParserException] {"Could not parse expression 'value(NHibernate.Linq.NhQueryable`1[FRPT.TestXModule.BL.TestEntity]).Where(element => (element.Id == 0dd52f6c-1943-4013- a88e-3b63a1fbe11b)).SelectMany(element => Convert(element.Details1))': This overload of the method 'System.Linq.Queryable.SelectMany' is currently not supported, but you can register your own parser if needed."} Remotion.Data.Linq.Parsing.ParserException The same exception generated by next statement without any WCF DS var l3 = ses.Query<TestEntity>().Where(s => s.Id == new Guid("....")).SelectMany(s => s.Details1).ToList(); I see in dev groop that there is increase of activity in LINQ bug fix & development May be this issue can also be fixed/improved ? This is the area where other ways for querying NHib could not be used. To be possible to work with WCF data services could be big + for NH. I also has fined related info about this [NH-16] http://groups.google.com/group/nhusers/browse_frm/thread/d4af2b588e8f2601/0460dddc26f0a902?lnk=gst&q=SelectMany#0460dddc26f0a902 and this discussion [Other exception but the same problem] http://social.msdn.microsoft.com/Forums/en-US/adodotnetdataservices/thread/fcdaca20-73ea-4abb-b70b-981fe2728351 -- 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.
