Linq Query Giving Error
- by user275561
I am getting this error when I use the Linq expression of
var emp = _testModel.Where(m => m.Date == DateTime.Now).Select(m=>m);
'System.Collections.Generic.IEnumerable' does not contain a definition for 'System' and no extension method 'System' accepting a first argument of type 'System.Collections.Generic.IEnumerable' could be found (are you missing a using directive or an assembly reference?).
I have google'd and looked everywhere by I have no idea what it is talking about? It doesn't throw an exception. The only way I found out about this was stepping through the expression.