Open
Description
Currently, the result set of the following methods is of type IEnumerable<dynamic>
. To be more specific and direct, it is good to return the type of IEnumerable<ExpandoObject>;
instead.
using (var connection = new SqlConnection(connectionString))
{
var person = connection.QueryAll("Person");
}
In which you can as well inferred it like this.
using (var connection = new SqlConnection(connectionString))
{
var person = connection.QueryAll<ExpandoObject>("Person");
}
Or even via IDictionary<string, object>
object.
using (var connection = new SqlConnection(connectionString))
{
var person = connection.QueryAll<IDictionary<string, object>>("Person");
}
Impact: There should be 0 impact on the existing code of the consumers.