将Hibernate Linq查询转换为HQL [英] Converting Hibernate linq query to HQL
问题描述
我知道IQueryable无法序列化.这意味着查询无法序列化,发送到Web服务,反序列化,查询然后再发送回.
I understand that a IQueryable cannot be serialized. That means that queries can not be serialized, sent to a webservice, deserialized, queried and then sent back.
我想知道是否可以将休眠的linq查询转换为hql,以便通过网络发送.
I was wondering if it is possible to convert a hibernate linq query to hql to be sent over the wire.
我还缺少另一条路线吗?
Is there another route I am missing?
推荐答案
我认为我看到ADO.NET数据服务被宣传为可以与NHibernate一起使用:
I think I've seen ADO.NET Data Services as advertised to work with NHibernate:
http://wildermuth.com/2008/07/20/Silverlight_2_NHibernate_LINQ_= = _Sweet
http://ayende.com/Blog/archive/2008/07/21/ADO.Net-Data-Services-with-NHibernate.aspx
这是旧文章,不确定该功能的维护程度,但值得一试.
This is an old post, and not sure how maintained this feature is, but its worth a shot.
这篇关于将Hibernate Linq查询转换为HQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!