2

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.

Abbas
  • 6,720
  • 4
  • 35
  • 49
Leon
  • 542
  • 1
  • 6
  • 15

1 Answers1

0

Looks like an issue when running under mstest

mathieu
  • 30,974
  • 4
  • 64
  • 90