You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a web app, some garbage was entered into an input field. Dapper blows up with a very strange error. 'When passing parameters by position, each parameter can only be referenced once'
Why is this happening? What about this garbage is causing this strange error?
Microsoft SQL Server C#
Here is some SAMPLE code where you can reproduce this bug on your own system.
using(vardbConn=newSqlConnection(ConfigurationManager.ConnectionStrings["SqlServer"].ConnectionString)){varmySqlText=@" SELECT '??e??e?' AS T INTO #Test ";dbConn.Execute(mySqlText,new{a=1,b=2});}