Dynamic Linq to Entities – using Like conditions

I have been using L2E for a while, and I am pleasantly surprised with what I have seen so far.  Today I ran into one of the expected walls, building dynamic queries (based on incoming request params).  Finding a solution to this I stumbled onto Dynamic Linq.

Having downloaded a single class implementation for the dynamic part.  There I ran into syntax problems when trying to construct a ‘Like’ based query on a string field.  Searched for a while until I found this:

http://social.msdn.microsoft.com/forums/en-US/linqprojectgeneral/thread/ec89724c-a9f3-47e7-9743-989a0f459718/

Which solved my problems 🙂 🙂 … and L2E still continues to impress on flexibility!

One thought on “Dynamic Linq to Entities – using Like conditions

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 )

Facebook photo

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

Connecting to %s