I have a dynamic result from Dapper query that contains records like this:
{DapperRow, billing_currency_code = \'USD\', count(*) = \'6\'}
I\'m
Suppose Your Data as below
var Details={DapperRow, billing_currency_code = 'USD', count(*) = '6'}
as The columns is coming dynamically
var firstRow= Details.FirstOrDefault();
To get the heading columns of the data
var Heading= ((IDictionary)firstRow).Keys.ToArray();
To get the value of the data by using key
var details = ((IDictionary)firstRow);
var vallues= details[Heading[0]];