I think you are missing using System.Linq;
from this system class.
and also add using System.Data.Entity;
to the code
More Related Contents:
- System.Linq.Expression.Compile error
- Get All instead of FirstOrDefault
- Join/Where with LINQ and Lambda
- Is there a good LINQ way to do a cartesian product?
- How to perform Join between multiple tables in LINQ lambda
- Sorting a list using Lambda/Linq to objects
- Mutating the expression tree of a predicate to target another type
- Can I specify my explicit type comparator inline?
- Multiple Order By with LINQ [duplicate]
- How to convert an expression tree to a partial SQL query?
- lambda expressions in immediate window for VS2015
- Cannot use a lambda expression as an argument to a dynamically dispatched operation without first casting it to a delegate or expression tree type
- LINQ – Query syntax vs method chains & lambda [closed]
- Local variable and expression trees
- Find all child controls of specific type using Enumerable.OfType() or LINQ
- How to merge a list of lists with same type of items to a single list of items?
- How to check for nulls in a deep lambda expression? [duplicate]
- How to make LINQ execute a (SQL) LIKE range search
- The data source does not support server-side data paging
- Will using LINQ to SQL help prevent SQL injection
- String.IsNullOrWhiteSpace in LINQ Expression
- convert this LINQ expression into Lambda
- Access the value of a member expression
- List complex sorting
- How do I dynamically create an Expression predicate?
- Select multiple fields group by and sum
- How to convert DataTable to class Object?
- Linq – Top value from each group
- LINQ to SQL Where Clause Optional Criteria
- Convert DataTable to Generic List in C#