home about Conferences rss feed  rss

Small but interesting find

07 Jul 2008

Yesterday I was coding and I needed to create a criteria like

Repository.FinOne(Restriccions.Eq(“Email”, email));

however I wanted to make sure that there was not prblems with caseing
it turns out IgnoreCase exists and can be used this way :D

Repository.FinOne(Restriccions.Eq(“Email”, email).IgnoreCase());

I was really happy to find this, thanks NHibernate in Action!

If you want to discuss this post, the best place right now for me is twiter, please @silverspoon with your comment/question.