Is there a possibility to call the "QueryAsync" method by reflection? As ?
I Have.
{
var query = string.Format(query, domain.GetColumns(), domain.GetTableName()); // here return "SELECT Columns from TableName"
var command = new CommandDefinition(commandText: query,
commandTimeout: TimeSpan.FromSeconds(5).Seconds,
commandType: CommandType.Text,
flags: CommandFlags.None,
cancellationToken: cancellationToken);
var response = await connection.QueryAsync<TModel>(command).ConfigureAwait(false); // Return IEnumerable<DapperRow> and not IEnumerable<TModel>
return response;
} ```
Can someone help me?