views:

68

answers:

1

Hello Everyone,

i want to construct my query dynamically based on the contents user has selected. and i want to do this in LINQ-t0-SQL. i have seen this. but i don't want to use sql statements with datacontext. on googling a bit i have a feeling that this can be done using dynamic LINQ. can someone quote some example of similar scenario with dynamic LINQ. any help/suggestion is highly appreciated
regards

+1  A: 

Looks like this is the link you need.
Update. Some details: you can use the SearchType method from the post to obtain a type using the table name and then use Dynamic LINQ to write queries you like.

Devart