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!
Monday, July 7, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment