Small but interesting find


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!

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: Logo

You are commenting using your 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: