-
Notifications
You must be signed in to change notification settings - Fork 61
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
Find Alternative Way to Pass Parameters #6
Comments
Hi, |
Does this mean, we can't use a query like ? SELECT * FROM [dbo].[tablename] where Id in (@id) and pass parameter like Parameters = "@id ={Query.id}" parameter is passed to function like this GET http://localhost:7071/api/xyzz?id=1,2 Can someone please confirm? As this doesn't seem to be working for me. I get the following error System.Private.CoreLib: Exception while executing function: ScannerSites. azure-sql-binding-func-dotnet-todo: Object reference not set to an instance of an object. Thanks! |
I wonder if a ResolutionPolicy would help here. CosmosDB does this for parsing out parameters : https://github.com/Azure/azure-webjobs-sdk-extensions/blob/dev/src/WebJobs.Extensions.CosmosDB/CosmosDBSqlResolutionPolicy.cs |
Related #943 |
The way a user currently passes parameters to the SQL query included in their input binding is via the
Parameters
parameter of the SqlAttribute. This isn't a great way to do it, for one because it doesn't allow for parameter names or values that include commas and equal signs, and also because it's not a very intuitive experience for the user. Perhaps we can look into how CosmosDB does parameters - sounds like they implemented their own version of "auto resolve"?The text was updated successfully, but these errors were encountered: