Small but interesting find

07Jul08

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 😀

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

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

Advertisements


No Responses Yet to “Small but interesting find”

  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: