In a project includes RepoDB, it is used by queries but I have problem with varbinary columns.
Dictionary<string, object> param = new Dictionary<string, object>();
param.Add("MyContent", myObject.MyContent));
var sql = "INSERT INTO mytable(myvarbinarycolumn) values (@MyContent);
await connection.ExecuteNonQueryAsync(sql, param);
I got the error:
'The incoming request has too many parameters. The server supports a maximum of 2100 parameters. Reduce the number of parameters and resend the request.'
myObject.MyContent
is a byte array but I tried also using string and encoding.
I already solved using classes and
connection.InsertAsync(myObject);
But I would like to know if there is a solution using queries and parameters.
EDIT: The question is about RepoDB, so using DbCommand or other ORM is not an option.