1

I have 2 questions:

  1. How can I use dynamic fields in LINQ in the PART OF THE where query? I mean that I want to write where x = *dynamic fields*

  2. I want to do the select query in all of the tables that are in the dataset, not on one datatable.

How can I do both of these things? Thank you.

4
  • What exactly do you mean by dynamic fields\files? Are you referring to columns added programmaticly, and not by code generator? What are the result you expect the query to return?
    – HuBeZa
    Jan 13, 2011 at 8:10
  • I mean that the compare fields are not static. they are dynamic.
    – miri venit
    Jan 13, 2011 at 10:00
  • I have a dataset that contain a few tables(datatables)/
    – miri venit
    Jan 13, 2011 at 10:01
  • i have a dateset that contain a few datatables and i want to see if one of the value colomn (by me its a key) appear in the other datatable? the value of the colomn is dynamic becuse i do this check on diffrent values. i hope that you understand me/ my english not well/ thank you
    – miri venit
    Jan 13, 2011 at 10:04

1 Answer 1

1
  1. Try using Dynamic LINQ.

Example:

Dynamic LINQ

  1. I suggest you use LINQ to SQL. If you still want to use DataSets, using Join() operator might help. (Reference: http://forums.asp.net/p/1627101/4185000.aspx)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.