UnoSD / Moq.Dapper

Moq extensions for Dapper methods.
GNU General Public License v2.0
173 stars 78 forks source link

ArgumentNullException when i pass an array as a parameter #36

Closed lucasteles closed 5 years ago

lucasteles commented 5 years ago

I got an argument null error when i tried to use an array as an sql parameter

var ids = new[] {1, 2, 3};
var result = connection.Query<Model>("SELECT * FROM TABLE WHERE id in @IDS", new {  IDS =  ids });

Debuging dapper i found that `command.CommandText' is null on SqlMapper class, what is causing this image

hienkhieu commented 5 years ago

Same here.