score:2
Accepted answer
Changed this
dynamicQueryBase.Add("other[\"" + field + "\"]" + " = @" + validFieldCount++);
to this
dynamicQueryBase.Add("other[\"" + field + "\"].ToString()" + " = @" + validFieldCount++);
makes it work as expected.
score:0
I can't test right now, maybe the default return for "where" is only a single item.
Try
var results = originalLineItems.Where(dynamicWhere, distinctResult).ToList();
And check if it's working fine.
Source: stackoverflow.com
Related Articles
- Cannot get more than one result when using System.Linq.Dynamic.Core to query a list of objects that have a member dictionary
- The result of a query cannot be enumerated more than once when using stored procedure
- How can I check the number of calls to the database in LINQ query when using .NET Core and Code First?
- Result consisted of more than one row when executing linq query against mysql database?
- The result of a query cannot be enumerated more than once
- LINQ : The query results cannot be enumerated more than once
- How can I write the following code more elegantly using LINQ query syntax?
- Linq sub query when using a repository pattern with EF code first
- Using LINQ query result for data source for GridControl c#
- How to get a single object by LINQ? ERROR: The result of a query cannot be enumerated more than once
- Enumerating stored procedure result - The result of a query cannot be enumerated more than once
- Is it possible to assign single linq query result to more than one variable?
- Mongodb returns more than one result when using Take(1)
- Linq query syntax to method syntax when using multiple joins to introduce dynamic restrictions
- LINQ error : The query results cannot be enumerated more than once
- One LINQ query to get counts from several entities when using entity framework core
- Getting null reference error in linq expression when trying to join more than 2 tables using defaultifempty method
- How can I simplify (speed up) the selecting query from a database that contains more than 1 million records using LINQ
- The result of a query cannot be enumerated more than once.
- When does EF Core LINQ query result in null coalescing despite SingleOrDefault() would return null?
- Linq query in EF Core 2 when using joins and pagination order by column alias doesn't work
- Returning a Query Result to an ListView when joining tables Using Visual Basic and Linq
- Linq query throws entity or complex type cannot be constructed in a linq to entity, even when i remove the class name just using select new { ..}
- More than 1 group by statements in one query using Linq
- Find the category which has 3 or more than 3 products data by using the linq and lambda query
- Dynamic Linq query for join two tables with more than one condition(dynamically)
- How to avoid Query Plan re-compilation when using IEnumerable.Contains in Entity Framework LINQ queries?
- Query data using "Contains" keyword in Dynamic Linq in C#
- Why is this LINQ query not executed when using foreach?
- Dynamic query using LINQ to SQL
- Union two nested List<object> with LINQ
- C# Linq datetime to string "dd/mm/yyyy"
- DataReader already open when using LINQ
- Linq handling variable number of OrderBy
- Query Context for Inserted but yet Uncommitted records
- Iterate through group by result
- Hashtable Duplicates
- How to use Linq extension method with CodeFluent Entities template?
- C# how to group List by objects with the same property values
- Search page with MVC + Linq + EF
- Search by using EntityFramework
- How to select multiple tables using LINQ
- Order List By Distinct And Object Property Larget value
- Regrouping Multiple rows into one
- Using Linq Aggregate to add elements of a List
- First() method returns wrong string
- How to create Expression<Func<TModel, TProperty>> without TProperty type explicit
- LINQ data services "Odata" select first child from parent
- Aggregate column items when IDs have same value
- MVC Model not being populated by database