Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. Is there any version work with .net core and it is cross platform or not?

like image 280
malballah Avatar asked Feb 28 '17 07:02

malballah


1 Answers

Now available

I revisited this answer and I found nhibernate seems now available for dotnet core: https://www.nuget.org/packages/NHibernate/

They released the first version around dec 2017.

Original Answer

Nhibernate seems to only have 1 dependency: Iesi Collections.

Both have no reference to any Netstandard libraries or dlls. which you will basically need to make any library or application.

For example lookt at this packages .NETStandard 1.6.

This is a good indication to know if the package was build for dotnet core or not.

Iesi.collections nuget package its last update (2013-02) pre-dates dotnet core. So save to say it wasn't tested nor build with dotnet core.

Alternative ORM's

  • 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)
  • Dapper (Very small and lightweight)
  • Artisan ORM (a new orm)

Search for orm and check the last updated date. This gives you a good indication of what you can use. (last updated in the last 3-6 months).

like image 110
Joel Harkes Avatar answered Oct 22 '22 07:10

Joel Harkes