Linq Query Giving Error
Posted
by user275561
on Stack Overflow
See other posts from Stack Overflow
or by user275561
Published on 2010-03-24T05:40:12Z
Indexed on
2010/03/24
5:43 UTC
Read the original article
Hit count: 240
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.
© Stack Overflow or respective owner