What is the current "production ready" version of NHibernate? I get conflicting answers on the hibernate site vs some other posts. Is it 2 or 2.1?? If it's 2.1 where do I get that binary?
The latest production version of NHibernate is 2.1. However there was a large change in 2.1 that is probably preventing people from making the jump right away. Maybe that is why you are getting conflicting answers.
You can always get the latest version from nhibernate.info
Details about the removal of the proxy framework here
Don't forget to grab yourself a copy of NHibernate Linq while you are at it
2.1
http://sourceforge.net/projects/nhibernate/files/
NHibernate-2.1.0.GA
Related
I would like to use fluent-nHibernate for different databases of firebird with different versions. I found some information on the jboss website but nothing at http://nhibernate.info/
Which versions are supported and where do i find things like this?
Since fluent-nHibernate sits on top of nHibernate you only need this one to support Firebird. If you check the source for the fluent-nHibernate Firebird configuration you will see there is no reference to any Firebird version.
Said this, according to this link at jBoss, Firebird is supported since version 1.5.3, though version 2.1 is strongly recommended in nHibernate. The same link gives also advice on how to configure your application.
This link also says you should always try to use the latest Firebird .NET provider, which you can download from Firebird's webpage.
Finally, you can find more information on the difference between nHibernate and fluent-nHibernate can be found in this SO question.
We have upgraded to NHibernate 3.0 with Fluent-NHibernate.
In version 2.1.2 we where able to use the SybaseDialect for ASE 12. In version 3.0 SybaseDialect for ASE 12 is not supported.
I reused the old Dialect from Nhib 2.1.2 and all is working.
What I wanted to ask since this one was removed as it was considered not a good implementation, is there a better one out there?
Since it's working I am not sure what improvements need be made but I thought I would ask.
This blog post has the scoop. Haven't tried upgrading so can't comment if the version 2.1.2 Sybase dialect with NHibernate 3.0 will perform any differently than using it with the NHibernate 2.1.2 version.
I took the Dialect class from NHibernate v2.1.2 and created a SybaseDialect.cs and then in the Config file I reference it, this seems to work fine.
I would like to get all 3 of these libraries working together but have a version problem.
Latest version of Linq To Hibernate (1.0) came out on 2009-07-26 and works with NHibernate 2.1.0 afaik. Fluent NHibernate's oldest release on the other hand is for NHibernate 2.1.2.
Google search yielded this zip file of binaries compiled together but it's somewhat outdated (2009-07-19). I'm not sure downloading the latest source code of each project and trying to build them together will work or not, I'd rather not to go that way unless I have to.
I guess the weakest link in this combination is Linq To NHibernate and maybe I should think of leaving it outside if there isn't an active community effort.
In short: Does anyone use these libraries together and if so, how did you solve this issue? Do you build it all yourself?
Note:
Looks like a duplicate of this question but it has been 1 year since it's answered, and the links given in the accepted answer don't work anymore.
NHibernate ver 3 has been released which already has the linq libraries. Download the latest binaries.
I don't think Fluent has been updated to use 3 yet so download the latest source for fluent and replace the NHibernate assemblies with the new NHibernate version 3 assemblies. You will need to tweak the source ever so slightly so that it compiles. Compile it in release mode and grab the output from the project bin folder.
It has been working fine for us.
EDIT
As Kohan pointed out you can download the latest version of Fluent 1.2 with the latest version of NHibernate 3 from the link to Fluent NHibernate I provided earlier.
I am an NHibernate newbie so I apologize if there is an obvious answer to this that I'm missing.
I see some questions on SO and some blog posts referring to NHibernate 3. But when I go to nhforge.org, it looks like the current downloads are for 2.1.2. Is 3 still a work in progress? Are there betas available somewhere? Documentation? Is there an established timeframe / roadmap for 3.X?
Update:
NH 3 has been released :)
http://sourceforge.net/projects/nhibernate/files/
You can download the latest NHibernate 3.0 Alpha from Sourceforge and view the roadmap / change log for the project on the NHibernate Issue Tracker.
If you click on the "Download Now NH 2.1.2" link on the NHForge home page, that will bring you to the download location for NH 3.0 Alpha 2 source and binaries.
http://nhibernate.info/
For release notes, see this thread from the NH user's group (basically, release notes are available in the download):
http://groups.google.com/group/nhusers/browse_thread/thread/e0cc47b01207b5ae/ef89fb5218e46fd7?lnk=raot&fwc=1&pli=1
Here is an NHibernate features page. Some, but not all, of the 3.0 features are called out here:
http://nhibernate.info/doc/nhibernate-features.html
The NHibernate documentation is here:
http://nhibernate.info/doc/nh/en/index.html
But the documentation doesn't appear to have been updated for NHibernate 3.0 yet. Most of the 3.0 features have documentation available on various blog posts that you can find through Google searches. I'm sure the project would love to have a volunteer pull all the documentation together in one place.
The timeframe / roadmap for NHibernate 3.0 to be officially released is whenever the important bugs have all been fixed. You can watch the progress on bug fixes on the NHibernate JIRA:
https://nhibernate.jira.com/browse/NH
Like most software, NHibernate 3.0 will be released when "it's ready". Here's a quote from Fabio, the project lead for NHibernate:
Roadmap: we hope to fix all of the
actual existing open issues but
because we know that it will be
impossible we can only say you that we
will release NH3 before the end of
this year.
(Source: http://groups.google.com/group/nhusers/msg/40769ab8b95750fc)
From the NHUsers mailing list, it sounds like quite a few people are running NH 3.0 in production.
You can find some information about NH3 from this podcast
http://www.hanselman.com/blog/HanselminutesPodcast225LearningAboutNHibernate3WithJasonDentler.aspx
You can also find the source for the project on source Forge
http://sourceforge.net/projects/nhibernate/files/
It hasn't been released yet. I believe it's still in the alpha stage, as per the wiki
And actually, after listening to Hanselminutes Podcast 225 - Learning about NHibernate 3 with Jason Dentler, http://nhibernate.info/ is a great place to get all the information you're looking for.
Check their website.
You can download binaries there: http://sourceforge.net/projects/nhibernate/files/NHibernate/
I'm migrating the data layer of our application to NH version 2.1.0 (from 2.0.1) and noticed the use of LinFu. I discovered that framework and want to use it in other pieces of the application, especially I want to use the LinFu.Reflection.dll, which requires a reference to LinFu.DynamicProxy and here comes the trouble, the 1.0 final version of LinFu that I can find on google.code is not the same version used by NHibernate itself. Do I need to rebuild NHibernate.ByteCode.LinFu.dll changing the reference to the available version? If not, what else?
I have faced the same problem a few days ago. There's a tool named ILMERGE that merges .NET DLL-files, and that way you should be able to have several versions of the same DLL in your application.
Unfortunately I haven't tested the tool yet, I didn't get around to it, but I'll test in the next week.
But Rhino Mocks for example, has a binary with all dependencies included: http://ayende.com/projects/rhino-mocks/downloads.aspx, so it seems doable.