Page 1 of 1

How to set more than 4 parameters in DataContext.Query()

Posted: Mon 26 Feb 2018 16:14
by ChrisT
Hello,

how is it possible to set more than 4 parameters in method DataContext.Query<T>(stmt, ...)?

I need to call Query() with an array of parameters.

Is it possible?

Chris

Re: How to set more than 4 parameters in DataContext.Query()

Posted: Tue 27 Feb 2018 13:59
by Pinturiccio
It is not possible to use an array of parameters in Query at the moment. We will investigate the possibility to support such feature and post here about the results.

Re: How to set more than 4 parameters in DataContext.Query()

Posted: Mon 05 Mar 2018 08:07
by ChrisT
Thanks. It would be very nice that this will be possible.

Now I have found a very tricky hack using Reflection.

Re: How to set more than 4 parameters in DataContext.Query()

Posted: Fri 30 Mar 2018 17:25
by Shalex
The behavior is changed: all existing overloads of the method DataContext.Query() are replaced with DataContext.Query(String,params Object[]). Refer to viewtopic.php?f=31&t=36965.

Re: How to set more than 4 parameters in DataContext.Query()

Posted: Tue 03 Apr 2018 08:15
by ChrisT
Thanks for your effort.
My problem is now solved.