DotNet and Dapper. Incorrect syntax near ','.
Hello folks,
Im trying to execute a sql query:
This is the data im trying to insert
Error:
Thanks in advance!
3 Replies
Where do you think the error is? Which line is causing it?
There is a lot of code in your snippet, irellevant to the error :p
Also, give this a read :)
https://www.learndapper.com/parameters
Dapper Parameter, SQL Injection, Anonymous and Dynamic Parameters
Dapper allows specifying parameters in querying methods to avoid SQL Injection. Learn more about how to use anonymous, dynamic, string, and output parameter
ParentKey and SubworkflowKey are both empty when handled in the SQL query i just found out
They are null in the request but empty strings in sql query.
This is what the query looks like when its getting executed
yea my bad, i had no idea where the error was coming from thats why i just posted the whole endpoint