WebOrb works with HQL - it is great.
but
MS WCF Data Services (not RIA but OData) use Linq in it's programming
model for accessing data.
I mean that it is not possible to integrate NH with WCF DS other way,
then providing compatible Linq implementation.
And it is partially possible right now, but only partially.
Also this do not work with same exception:
var l3 = ses.Query<TestEntity>().Where(s => s.Id
== .....).SelectMany(s => s.Details1).ToList();
On Dec 6, 4:24 pm, Fabio Maulo <
fabioma...@gmail.com> wrote:
> WebOrb data services for RIA are completelly based on HQL (you can use
> LINQ as option).
> What you mean exactly with "not possible" ?
>
> --
> Fabio Maulo
>
> El 06/12/2010, a las 10:00, Alexander Kot <
alexander....@gmail.com> escribió:
>
> > 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-d...
> >
http://localhost:2711/TestWcfDataService.svc/TestEntities(guid'.........
> > //This is reference to setup from main entity
> >
http://localhost:2711/TestWcfDataService.svc/TestEntities(guid'.........
>
> > but do not works for request
> >
http://localhost:2711/TestWcfDataService.svc/TestEntities(guid'0dd52f...
> > //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/d4af2b588e8f...
> > and this discussion
> > [Other exception but the same problem]
> >
http://social.msdn.microsoft.com/Forums/en-US/adodotnetdataservices/t...