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
How to set more than 4 parameters in DataContext.Query()
-
- Devart Team
- Posts: 2420
- Joined: Wed 02 Nov 2011 09:44
Re: How to set more than 4 parameters in DataContext.Query()
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()
Thanks. It would be very nice that this will be possible.
Now I have found a very tricky hack using Reflection.
Now I have found a very tricky hack using Reflection.
Re: How to set more than 4 parameters in DataContext.Query()
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()
Thanks for your effort.
My problem is now solved.
My problem is now solved.