简体   繁体   English

使用NHibernate QueryOver需要什么参考?

[英]What reference I need to use NHibernate QueryOver?

I can't find out what namespace reference is needed to use NHibernate's QueryOver? 我找不到使用NHibernate的QueryOver需要什么名称空间引用?

How do you find out this type of things anyway? 您如何找到这种类型的东西? Is there any searchable documentation where I "should have looked"? 在“应该看过的地方”有没有可搜索的文档?

You just need a reference to NHibernate (it's a method of ISession ). 您只需要对NHibernate的引用(这是ISession的方法)。 Do note, though, that it's only available starting in NH 3.0. 不过请注意,它仅在NH 3.0中可用。

using NHibernate;

More here . 这里更多。

using NHibernate; 

is the reference that you need to add.. 是您需要添加的参考。

Apart from this I would suggest you try out this amazing tool call Resharper. 除此之外,我建议您尝试一下这个令人称奇的工具Resharper。 If you start using it you will never ever work without it believe me.. its the best tool i have used in a year. 如果您开始使用它,没有它,我将永远无法工作。.它是我一年来使用过的最好的工具。 try the trial version and then think about getting a licence. 试用试用版,然后考虑获得许可证。 here is the link Resharper 这是链接Reshaper

Enjoy.. 请享用..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM