I am getting this error when I use the Linq expression of
var emp = _testModel.Where(m => m.Date == DateTime.Now).Select(m=>m);
The error is
'System.Collections.Generic.IEnumerable<TestModel>' does not contain a definition for 'System' and no extension method 'System' accepting a first argument of type 'System.Collections.Generic.IEnumerable<TestModel>' 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.
Namespaces that are imported
using System;
using System.Collections;
using System.Linq;
using System.Collections.Generic;
Tried something like this and it still gives erros
string[] digits = { "zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine" };
var shortDigits = digits.Where((digit, index) => digit.Length < index);