variable Linq statement

variable Linq statement

haiderwathiqhaiderwathiq Posts: 2Questions: 0Answers: 0

hi .. i have two datatable and want to my user to be able choice the fields and the relations between them using LINQ ,which mean the the query will be variable,i'll be very grateful if you help me

Replies

  • colincolin Posts: 15,118Questions: 1Answers: 2,583

    I'm not familiar with LINQ, but that sounds more like a back-end operation rather than in the browser. Do you have an example of what you have in mind?

    Colin

  • haiderwathiqhaiderwathiq Posts: 2Questions: 0Answers: 0

    thank you colin ... let say that dt_a is a datatable has fld_a1,fld_a2,fld_a3 and dt_b is the second datatable has fld_b1,fld_b2,fld_b3 what i want is is : in a grid first column will list all fields from both tables,second column will list an operation signs (=,<,>,<>,...etc) third column will list all fields from both tables again to get flexibility in creating query by user , I want to as programmer to build query dynamically ...thanks again

  • colincolin Posts: 15,118Questions: 1Answers: 2,583

    You could possibly create a custom search plugin, but I suspect it'll get messy fast, I'm afraid. I can't think of a tidy way to do it,

    Colin

Sign In or Register to comment.