It works:
var list = conn.Query<int>( "select Id from Person where Id in @ids", new { ids = new int[] { 1, 2, 3 } } );
This throws "There is no mapping from the type of the System.Int32 [] object to the known type of managed managed provider.":
DynamicParameters parameters = new DynamicParameters( new { ids = new int[] { 1, 2, 3 } } ); var list2 = conn.Query<int>( "select Id from Person where Id in @ids", parameters );
Any ideas?
source share