Use == instead of Equals:
where t.CustID == custIdToQuery
If the types are incorrect you may find that this doesn’t compile.
More Related Contents:
- Linq: help me to make this work
- How do I apply OrderBy on an IQueryable using a string column name within a generic extension method?
- Why is .Contains slow? Most efficient way to get multiple entities by primary key?
- Entity Framework/Linq EXpression converting from string to int
- Filter/Search using Multiple Fields – ASP.NET MVC
- How to convert an expression tree to a partial SQL query?
- How to filter data using Entity Framework in a way that DataGridView be editable and context track changes?
- Join and Include in Entity Framework
- Max return value if empty query
- Remove item from list based on condition
- How to do an “in” query in entity framework?
- big issue in converting string to datetime using linq-to-entities
- Keep Getting ‘The LINQ expression node type ‘Invoke’ is not supported in LINQ to Entities’ Exception
- How to include() nested child entity in linq
- Should the order of LINQ query clauses affect Entity Framework performance?
- LINQ Query to Convert string to datetime
- The cast to value type ‘Int32’ failed because the materialized value is null
- Playing a MP3 file in a WinForm application
- How to get the index of an element in an IEnumerable?
- How can I treat the circle as a control after drawing it? – Moving and selecting shapes
- Entity Framework. Delete all rows in table
- How to Get XML Node from XDocument
- How to Draw a Rounded Rectangle with WinForms (.NET)?
- Get the SourceControl of a DropDownMenu
- Linq to Entity Join table with multiple OR conditions
- Parent Control Mouse Enter/Leave Events With Child Controls
- How to simulate Windows shutdown for debugging?
- Parallel doesnt work with Entity Framework
- Entity Framework Multiple Object Contexts
- How to set text to a control from resource file in design time?