I am working with .NET4.5 and VS2013, I have this query that gets dynamic
result from db.
dynamic topAgents = this._dataContext.Sql(
\"sele
The problem is that topAgents
is dynamic
- so your ToList()
call is dynamic, and so is Select
. That has issues that:
Fortunately, the operations don't need to be dynamic just because the element type is dynamic. You could use:
IEnumerable<dynamic> topAgents = ...;
... or just use var
. Both of those should be fine.