I am new to LINQ and am trying to query my Business Layer (BLL), i.e. Model. I have looked at some samples, but none seem to assist me in my scenario.
Let's say I start w/ creating a method, I would think:
public void GetLinqQuery()
{
EmployeeCollection employeeList = EmployeeController.GetAll(); // my usual way of getting employee list
// now I'll attempt using LINQ to get a subset of that collection
var query = from emp in employeeList
select emp.FirstName, // *** Intellisense breaks here, why?
}
Am I doing something wrong? How can I query my Collections/Entities given that I have Objects?
Thanks!