I need return a list from dapper with the new tuple in C# 7.
public static List<(int StyleId, decimal StyleCode)> GetOnlyServices()
{
var query = $@" SELECT
ST.style_id as StyleId, ST.style_code as StyleCode
...
...";
using (SqlConnection db = new SqlConnection(InfobaseConString))
{
var a = db.Query<(int StyleId, decimal StyleCode)>(query, commandTimeout: 90).ToList();
return a;
}
}
But this function only return me 56 rows with (0,0), Item1=0, Item2=0
.
What I missing?