views:

11

answers:

0

Newbee here: Thinking on using this: http://www.albahari.com/nutshell/linqkit.aspx

I am creating an asp .net web app/c#/EF4, where users can perform search from a set of textboxes.

Here are the basic rules.

  1. User can search on any number of fields. (no fields are required)
  2. Each field has an option dropdown to choose "equal" "contains" etc
  3. The total field values can be "ANY" or "ALL" (meaning or/and).

My Problem:

Search fields come from several related tables.

A. How can I build predicates (or anyother way) based on user input. (it can be any field any table with a criteria)

B . How can I return a set of results as a collection of a class. (the class has properties that i have to populate from a set of tables)

Any suggestion/example on how I can do this with lingkit or any other example in c#/asp.net would be greatly appreciated.