Roundcrisis

About Contact me Presentations 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!

Categories:   NHibernate

Want to discuss this post? the best place right now for me is mastodon, please message me @roundcrisis@types.pl with your comment or question.