score:2
Accepted answer
the enumerable.where
takes a func(of tsource, boolean)
as argument and your passing a string
.
(update)
didn't catch the dynamic library part ... sorry. i think you need to do this:
dt.asqueryable()
because the extension methods on the library are defined as:
<extension()> _
public function where(byval source as iqueryable, byval predicate as string,
byval paramarray values() as object) as iqueryable
Source: stackoverflow.com
Related Query
- Linq over datatable using dynamic library sample?
- Using LINQ Dynamic Query Library with Dictionary<string, object> and .AsQueryable()
- Running sum using the Dynamic Linq library
- Need help with a LINQ Query using the Dynamic LINQ Library
- Ordering by ICollection property using its name as string with Dynamic Linq Library
- DataTable - Dynamic Linq OrderBy using Lambda expressions
- Convert string[] to int[] in one line of code using LINQ
- How to use GroupBy using Dynamic LINQ
- Query data using "Contains" keyword in Dynamic Linq in C#
- Some data is missing in the Export to Excel using DataTable and Linq
- Using Linq to GroupBy and Sum datatable
- How to do a Sum using Dynamic LINQ
- Dynamic query using LINQ to SQL
- Fastest way to fill DataTable from LINQ query using DataContext
- Dynamic linq query expression tree for sql IN clause using Entity framework
- How to find duplicate record using Linq from DataTable
- c # using linq to group by multiple columns in a datatable
- Using DateTime in Dynamic LINQ to Entities
- Building a dynamic where clause for dynamic keywords or using IQueryable C# Linq
- Left outer join using LINQ -- understanding the code
- How to reuse a linq expression for 'Where' when using multiple source tables
- Dynamic Where Clause over relational tables with LINQ to SQL
- Avoiding code repetition when using LINQ
- Iterating over class properties using LINQ
- Using LINQ to delete an element from a ObservableCollection Source
- LINQ Source Code Available
- Populating a List(Of String) from a Datatable using LINQ in VB.NET
- Querying a DataTable using LINQ
- How to sort datatable with multi column using LINQ
- How do I define a SELECT TOP using LINQ with a dynamic query?
More Query from same tag
- Transform LINQ to normal Foreach
- left outer join after a inner join linq c#
- Using LINQ to group together a list of nodes and a list of their attributes
- How to abstract a value from an object within an object?
- Lambda/LINQ Select Minimum
- MongoDB C# driver: LINQ filtering on enum serialises enum as int
- Converting SQL to Linq syntax
- Is it possible to call T-SQL function in Entity Framework and LINQ?
- search query in entity framework 3.5
- MVC LINQ Converting from datetime to week
- LINQ to XML Query Help
- SQL to LINQ troubles
- How to combine many nested foreachs into on Linq query
- LINQ: Given A List of Objects, Create a Dictionary with child objects as keys and Parent Objects as Value
- linq to object - Method not found
- How to get the last sub string from the url using linq
- Query with optional/conditional join between 2 tables
- copy chosen properties to object of other type
- Linq .ForEach Optimization
- How to check IS NULL on DataTable?
- How to select specific columns in one-to-one relationship table along with few direct columns in Entity Framework Fluent API
- not strongly typed view problem
- How to convert List<Company> to List<ICompany>
- LINQ to XML: How to clone nodes while retaining annotations?
- C# LINQ to SQL Specified type member inside lambda expression
- Simple Linq Join
- convert a SQL update statement to a LINQ to Entities
- How to manually map a List of object to a list of DTO?
- Find elements existing in both collections using LINQ
- How to retrieve data from Excel using linq?