简体   繁体   English

nhibernate是否适用于.net核心?

[英]Does nhibernate work with .net core?

I tried to download the package with nuget in .net core 1.0 console application but it failed to build. 我尝试在.net core 1.0控制台应用程序中使用nuget下载该软件包,但是无法构建。 Is there any version work with .net core and it is cross platform or not? 是否有任何版本与.net核心一起工作,它是否是跨平台的?

Now available 现在可用

I revisited this answer and I found nhibernate seems now available for dotnet core: https://www.nuget.org/packages/NHibernate/ 我重新回答了这个问题,我发现nneternate似乎现在可用于dotnet核心: https//www.nuget.org/packages/NHibernate/

They released the first version around dec 2017. 他们在2017年12月左右发布了第一个版本。

Original Answer 原始答案

Nhibernate seems to only have 1 dependency: Iesi Collections . Nhibernate似乎只有1依赖: Iesi Collections

Both have no reference to any Netstandard libraries or dlls. 两者都没有引用任何Netstandard库或dll。 which you will basically need to make any library or application. 您基本上需要制作任何库或应用程序。

For example lookt at this packages .NETStandard 1.6. 例如,看看这个包.NETStandard 1.6。

This is a good indication to know if the package was build for dotnet core or not. 这是一个很好的指示,知道该包是否是为dotnet核心构建的。

Iesi.collections nuget package its last update (2013-02) pre-dates dotnet core. Iesi.collections nuget打包最新更新(2013-02)前期dotnet核心。 So save to say it wasn't tested nor build with dotnet core. 所以可以说它没有经过测试,也没有使用dotnet核心构建。

Alternative ORM's 替代ORM

  • Entity framework Core (Does not have all EF features, and they say not production ready, but very stable, and probably your best choice out there) 实体框架核心 (没有所有EF功能,他们说生产准备就绪,但非常稳定,可能是你最好的选择)
  • Dapper (Very small and lightweight) 小巧玲珑的 (非常小,重量轻)
  • Artisan ORM (a new orm) Artisan ORM (一个新的orm)

Search for orm and check the last updated date. 搜索orm并检查上次更新日期。 This gives you a good indication of what you can use. 这可以很好地指示您可以使用的内容。 (last updated in the last 3-6 months). (最近3-6个月更新)。

I think the best answer is the Jira Item on NHibernate : 我认为最好的答案是NHibernate上的Jira Item:

https://nhibernate.jira.com/browse/NH-3807 https://nhibernate.jira.com/browse/NH-3807

Here you can see the current state. 在这里你可以看到当前的状态。

根据该请求 ,NHibernate支持.NET Core 1.0,但是对于.NET Core 2.0,您将有另一个主要更新仍在审核中。

NHibernate has moved from JIRA to GitHub some time ago. NHibernate不久前已从JIRA迁移到GitHub。

You can now track the progress in these items: 您现在可以跟踪这些项目的进度:

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

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