Fluent NHibernate 的仅查询属性
我找不到 Ayende 的博客 可与 Fluent NHibernate 配合使用。
据我了解,我可以映射伪字段,其值是任何 hql 查询的结果。这是正确的吗?如何将此功能与 Fluent Nhibernate 一起使用?我尝试谷歌,但没有成功。代码示例或它们的链接将不胜感激。
I can't find how Nhibernate feature described in Ayende's blog works with Fluent NHibernate.
As far as I understand, I can map pseudo-field which value is a result of any hql query. Is this correct? How this feature can be used with Fluent Nhibernate? I tried google, but unsuccessful. Code samples or links to them would be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据此票证,它可以工作:
http://code.google。 com/p/ Fluent-nhibernate/issues/detail?id=259
那里有一个示例,但我还没有测试过。
Ayende 示例的结果可能如下所示。请注意,显然无法避免使用代表集合的属性。
According to this ticket it works:
http://code.google.com/p/fluent-nhibernate/issues/detail?id=259
There is a sample there, but I haven't tested it.
The result with Ayende's example would probaly be something like below. Note that aparently it can't be avoided to have the property representing the collection.