0

I would like to ask from some advice. I usually use Java JPA with Criteria Queries and PostgreSQL in my projects (I work with Tapestry Framework which is based on Maven). I feel so comfortable with this tools and I can develop quickly. But now I must develop a proyect in C#. I have been studing similar tools in this platform and I have found NHibernate and NPersistence. The problem is that with NPersistence you can not use Criteria (http://www.npersistence.org/content/how-use-criteria), and with NHibernate you can not mapping with NPersistence. So, what do you thing could be more interesting for learn and quickly development?? May I use NHibernate with XML mapping and Criteria or could be better use NPeristence with another kind of queries??

Thanks in advance!

4

1 回答 1

0

NHibernate 比 Hibernate 有一些高级查询选项。QueryOver 和 Linq 是编译器支持的查询语言。

对于映射,Castle Active Record 类似于 JPA 注释。然而,FluentNHibernate 和 MappingByCode 比 IMO 好得多,因为它们像 xml 映射一样具有持久性无知,但更容易使用。它们都具有自动映射功能,非常棒。

于 2013-05-14T06:08:06.643 回答