LINQ in Action roller

Dynamic conditions: How to achieve multiple "OR" conditions with LINQ?

A common use for database querying in a page is to allow users to enter a list of keywords for searching. i.e. "Word1 Word2 Word3" along with some settings options where he can pick something like: [All words], [Any word], [Exact Phrase]. I used that approach to write a learning tool with LINQ. Exact Prase was easily achieved by something like: from q in context.MyView where q.MySearchField.Contains(TextBox.Text) select q which translated to select * from MyView where MySearchField like Read More...
Published Wednesday, February 21, 2007 7:11 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication