-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic Parameters with Table Valued Parameters #364
Comments
Can you paste the exact code? From the SO question it doesn't look like you are using the var dynamicParameters = new DynamicParameters();
dynamicParameters.Add("PersonList", myDatatable.AsTableValuedParameter()); |
Tested using extension method "AsTableValuedParameter()" and it works as expected, though I have following questions:
|
On the first item, We also haven't had a very robust test suite outside SQL server. Which we can do now and I'll try and flesh out as time allows - this would let us more heavily test any more compatible version. @mgravell any thoughts on more generified version here? |
@NickCraver Thanks for the above explanation. In regards to:
What do people try to use instead to fill this need? |
I have posted the same question @
http://stackoverflow.com/questions/33087629/dapper-dynamic-parameters-with-table-valued-parameters
Didn't got a response, therefore tried and posted my own work around as a response. Still looking for an out of the box solution. Issue is fairly simple, if I have a Output Parameter, Return Value parameter along with a Input parameter which is Table type, now we need Dynamic parameters for adding parameters to execute query, but it seems not feasible to add Dynamic Parameters which is Table Valued. It leads to an error:
Any suggestion to work around it?
The text was updated successfully, but these errors were encountered: