I am searching for a good book on NHibernate and sorted out that 'NHibernate in Action' should be good for me.
I am currently working on a project that uses Fluent NHibernate but still would like to dive into how-it-works basics.
Wondering if there is any newer release of NHibernate in Action book other than which explains Version 1.2.
Any ideas?
Get a copy of the NHibernate 3.0 Cookbook
Related
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.
With NHibernate 3 going GA today, I was wondering if I can upgrade a project that is using Fluent NHibernate. Can i simply swap out the 2.1 DLL for the 3.0 and have it work? - Or is there more to it than that?
I know there will be some work with the change in Linq syntax but i am not concerned with that, I just want to know if the DLLs are interchangeable for Fluent.
Many thanks,
Kohan
Addendum
The Fluent guys have done it themselves now:
http://fluentnhibernate.org/downloads
drlongnecker has built Fluent NHibernate for NHibernate 3.0GA. You can grab the source here.
Update: Fluent Nhibernate now officially builds pre-release binaries with NHibernate 3.0.
You need to build them together. Can wait for NuGet to be updated or you can build them yourself.
Or you can put assembly redirect
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/
Im experiencing some frustration trying to upgrade the nhibernate libraries that Fluent NHibernate uses.
Im also using Nhibernate.Linq and am wanting to use NHibernate.Validator, specifically the ValidationDef class.
Now Nhibernate.Validator is up to using Nhibernate 2.1.0.1003, and when i try to build FluentNhibernate against this verion it get some test errors.
It has to do with SessionFactory configuration and the newish Nhibernate.ByteCode.Castle library.
Could anyone help me out here?
I don't think FNH "officially" supports NHibernate 2.1 and probably won't until after it is actually released. However, it's my understanding that it is possible to get it to work. See if this thread on the FNH groups is helpful.