I would like to replace the lambda expression in the following code
var idQuery = Query<ApiStatisticsAggregatedStats>.EQ(t => t.Api, id);
with a func. Hovering over the statement it says the declaration is
Func<ApiStatisticsAggregatedStats, string>
The following code gives an error though,
Func<ApiStatisticsAggregatedStats, string> idFunc = x => x.Api
var idQuery = Query<ApiStatisticsAggregatedStats>.EQ(idFunc, id);
Error:
The best overloaded method match for
Query<ApiStatisticsAggregatedStats>.EQ<string>(Expression<Func<ApiStatisticsAggregatedStats, IEnumerable<string>>>, string)has some invalid arguments.
Where did that IEnumerable come from? What am I doing wrong?