NHibernate 2.1.0 GA with LINQ to NHibernate and FluentNHibernate

I ran into a versioning problem when I tried to use the latest version of FluentNHibernate with the latest version of LINQ to NHibernate because LINQ to NHibernate is built using a later version of the NHibernate binaries.

After doing a little search, I found a version of NHibernate which both LINQ to NHibernate and FluentNHibernate had been built against here.

So now, I can enjoy the same fluent interface to configure NHibernate and the use of LINQ query like this:

var onePiece = from s in session.Linq<Series>() where s.Name == "One Piece" select s;

 

Learn to build Production-Ready Serverless applications

Want to learn how to build Serverless applications and follow best practices? Subscribe to my newsletter and join over 5,000 AWS & Serverless enthusiasts who have signed up already.

Leave a Comment

Your email address will not be published. Required fields are marked *