Linq to NHibernate - String.Equals with StringComparison option

A couple of days ago Matteo Migliore asked me a question about why String.Equals(string, StringComparison) was not supported in Linq to NHibernate while it was in Entity Framework. My first answer was that the Linq to NHibernate implementation might


NHibernate Linq provider: dynamic filtering using lambda expressions

Working with the new NHibernate Linq provider I needed a simple way to dynamically buildup a ‘filtering’ lambda expression to be used as the where clause in a select operation; nothing you cannot already do with the ICriteria/QueryOver API or with HQ


NHibernate - Customize the Linq provider to call your user defined SQL functions

Let’s see how you can extend the new Linq to NHibernate provider to call your custom defined SQL functions. First off let’s start defining a custom function we want to call: CREATE FUNCTION [dbo].[CustomGetMonth] ( -- Add the parameters for the


NHibernate 3 - Extending the Linq Provider to fix some System.NotSupportedException

With the release of the new version NHibernate (3.0 alpha1), I’ve decided to give it a try and branch my current solution to switch to this new version and see hoe it goes. I was especially interested in the new Linq support, cause I’ve decided to u


Linq to NHibernate: how to query on a property without setter

Recently I’ve started to play with Linq to NHibernate and I have to say it work pretty well for the scenarios I’m facing. It also helped me to ‘re-learn’ some things on NHibernate I usually forget. Let’s consider the case in which we have a cl...