Dapper AddDynamicParams for IN statement with “dynamic” parameter name

I have just submitted a fix to the repository that allows any of the following to work correctly:

by object (this worked previously):

values.AddDynamicParams(new { ids = list });

or, by single name:

values.Add("ids", list);

or, as a dictionary:

var args = new Dictionary<string, object>();
args.Add("ids", list);
values.AddDynamicParams(args);

I have not yet deployed to NuGet. Let me know if this is a problem.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)