score:1
You're not assigning your predicate anywhere. Change the line to this:
predicate = predicate.Or(a => GetPropertyVal(a, ((FilterAttribute)attrs[0]).FilterPath) == value);
Source: stackoverflow.com
Related Query
- Why predicate isn't filtering when building it via reflection
- Custom predicate building when filtering Kendo UI MVC Grid
- Forcing Entity Framework to not generate NCLOB's when building Linq-to-Sql Code (Model First)
- why does this linq code get exponentially slower when applying First() to projection?
- Why did my code work when I changed it from IEnumerable to List?
- LINQ: When to use SingleOrDefault vs. FirstOrDefault() with filtering criteria
- Why does Enumerable.Single() iterate all elements, even when more than one item has already been found?
- Entity-framework code is slow when using Include() many times
- Why does this Linq Cast Fail when using ToList?
- Why does C# compiler create private DisplayClass when using LINQ method Any() and how can I avoid it?
- Why can't you edit and continue debugging when there's a Lambda expression in the method?
- Why am I getting "Collection was modified; enumeration operation may not execute" when not modifying the enumerated collection?
- Why does a Linq Cast<T> operation fail when I have an implicit cast defined?
- Why does Single() not return directly when more than one element is found?
- Why do I have to copy "this" when using LINQ in a struct (and is it OK if I do)?
- How to detect IsNull / NotNull when building dynamic LINQ expressions?
- Why does LINQ query throw an exception when I attempt to get a count of a type
- Why do I need Stored Procedures when I have LINQ to SQL
- Why and When to use LINQ?
- Why does EF 5.0 not support this EF 4.x LINQ syntax when compiling to sql?
- Why throws exception when using Guid.Parse() method?
- Why does this error occur when using SingleAsync?
- Why does sp_executesql run slower when parameters are passed as arguments
- When using "yield" why does compiler-generated type implement both IEnumerable and IEnumerator
- Why is this LINQ query not executed when using foreach?
- Why no intellisense when LINQ statement has no where clause?
- Why is my code doing lazy loading even after I turned it off at every possible point?
- Why does EntityFramework's LINQ parser handle an externally defined predicate differently?
- Is order of the predicate important when using LINQ?
- Why doesn't this code compile in VS2010 with .NET 4.0?
More Query from same tag
- Using special property names in Dynamic LINQ
- AnyCase Searching Using LINQ
- DataTable.Select() to display summation of records in datatable
- Group by and count on list lambda c#
- What is a good way using LINQ To SQL to update multiple tables through a view?
- Linq expressions as params
- Json.NET LINQ query for single JProperty on JArray of JObjects
- IN query condition with Entity Framework
- Combining 2 LINQ into one call
- Join Nhibernate
- How do I find all occurrences of a specific sentence within a string?
- Linq Transpose List
- How to check CONTAINS with multiple values
- Get column name by value of field in datarow
- Linq filter out rows with null or string.empty
- best way to select...where in using linq
- How to perform deletion of entities based on a list of ids
- How to get the value by a key from a super nested Json
- Difficulty typing arguments for System.Linq.Enumerable.Select
- Is this a DDD rule?
- Conditional projection with LINQ to Entities
- How do I access columns from joined tables using Linq, C# in asp.net MVC
- Split a List of an Object group by some properties with lambda expression
- Repeat numbers in List/IEnumerable
- How to get data from a Table if they exist in another Table C# LINQ
- C# linq include before-after where
- How can I get the index of an item in a list in a single step?
- Using the results linq query in another linq query
- Why is Entity Framework ignoring the Take() method when generating SQL?
- Bind the values without duplicates from database into dropdown using LINQ