I am trying to build a simple query in nHibernate with QueryOver but I want it to convert everything lower-case or ignore sensitive:
Domain.User User = Sessi
my workaround for this is using a expression.eq combined with a projection, so a case insensitive equals without any magic strings can be done with queryover
query.Where(Expression.Eq(Projections.Property(Of MyType) (Function(x) x.Name), "something").IgnoreCase)