Since upgrading to Fluent NHibernate 3.1, I keep getting errors on all my queries.
For example I have some simple code, like this:
public bool isUsernameFree(string username)
{
return _session.Query<User>()
.Where(u => u.username == username).Count() == 0;
}
But it always fails with the error:
The type initializer for 'NHibernate.Linq.NhRelinqQueryParser' threw an exception. Sequence contains more than one matching element
Does anyone know what's going on? It worked fine in the previous version.