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
In QueryOver you can use following:
Domain.User User = Session.QueryOver() .WhereRestrictionOn(x=>x.Login).IsInsensitiveLike("username") .SingleOrDefault();