Geeks With Blogs
Fórmulas e Cenas Object Reference Not Set to an Instance of an Object April 2012 Entries
How to: Use like '%text%moretext%' using LinqToEntities

Simple and direct:

myContainer.myEntity.Where("it.myField LIKE '%' + @searchTerm + '%'", new ObjectParameter("searchTerm", myQueryText));

Posted On Wednesday, April 18, 2012 8:52 AM

Copyright © Sglima | Powered by: GeeksWithBlogs.net | Join free