dynamic-linq Questions

3

Solved

I am trying to do a GroupBy using Dynamic LINQ but have trouble getting it to work. This is some sample code illustrating the problem: List<dtoMyAlbum> listAlbums = new List<dtoMyAlbum&g...
Nuncia asked 2/12, 2013 at 13:31

5

Solved

I would like to use enumerations in my dynamic LINQ queries. Is it possible, and if, how? Consider the code bellow: using System; using System.Collections.Generic; using System.Linq; using Sys...
Compagnie asked 16/8, 2011 at 9:0

1

Solved

I'm Using Dynamic Linq library and there is Source code and basic docu and the Nuget version PM> Install-Package DynamicLINQ I'm trying to construct a where clause that involves Guids I have t...
Semitic asked 9/5, 2013 at 16:33

5

Solved

Can any body tell me how can I use a LIKE operator using System.Linq.Dynamic? I need to add more than one LIKE expression in my dynamic where query /* var query = db.Customers. Where("CityName Li...
Deiform asked 5/1, 2011 at 1:6

1

Solved

I am using the dynamic linq library with entity framework and want to compare dates. I have succesfully extended the library based on the following SO article here However what I can not seem to do...
Luculent asked 28/8, 2012 at 20:58

2

I'm using the Dynamic Linq Library (this one) in my .NET MVC application to query a SQL Server database. It's all working fine so far. However, the Dynamic Linq Library gives an "Expression expect...
Pathway asked 8/8, 2012 at 15:27

1

Solved

I have an extension on IQueryable that allows passing in delimited string of property names which, when used causes query not to construct JOINs and effectively causes SELECT N+1 issue. What I not...

1

Solved

I'm having some difficulty creating Lambda-based Linq expressions from a string. Here is my basic case using this sample object/class: public class MockClass { public string CreateBy { get; set; ...
Cargo asked 11/4, 2012 at 22:24

4

Disclaimer: I've solved the problem using Expressions from System.Linq.Expressions, but I'm still looking for a better/easier way. Consider the following situation : var query = from c in db.Cu...
Leyba asked 24/10, 2008 at 17:13

4

Solved

I am using the Dynamic Linq Library / Sample from Microsoft to do ordering on a list. So for example I have the following C# code: myGrid.DataSource=repository.GetWidgetList() .OrderBy(sortField...
Arundell asked 18/9, 2009 at 14:18

1

Solved

I am trying to build an expression tree programmatically. I have in my input, a list of condition classes which have the following form: public class Filter { public string field { get; set; } ...

2

Solved

Using the Dynamic LINQ library (link), is it vulnerable to injection? and (if so) how can this be protected against? Some background from Security Considerations (Entity Framework): LINQ to Ent...
Orpington asked 5/1, 2012 at 7:20

2

Solved

I have a list of customers that can be sorted by anywhere from 1 to 6 fields based on a user's selection. The sort fields can be in any order. If I know the fields and the sequence ahead of time, s...
Rademacher asked 11/1, 2012 at 22:33

1

Solved

Consider the code below: var vectorTest = new Vector2(1, 2) + new Vector2(3, 4); // Works var x = Expression.Parameter(typeof(Vector2), "x"); var test = System.Linq.Dynamic .DynamicExpression.Pa...
Sibelius asked 12/1, 2012 at 15:34

3

Solved

I am trying to use a dynamic linq query to retrieve an IEnumerable<T> from an object collection (Linq to Object), each of the objects in the collection have an internal collection with anothe...
Neysa asked 12/1, 2012 at 2:4

2

Solved

With Dynamic LINQ, what changes need to be done to have fields of the given class? For example, how can the following C# query be reproduced in DLinq: var carsPartial = cars.Select(c => new {c...
Hammack asked 8/1, 2012 at 8:17

1

Solved

I am trying to mimick the left outer join here but using dynamic linq extension methods. What i have: public static IQueryable SelectMany(this IQueryable source, string selector, string resultsS...
Pompous asked 9/9, 2011 at 16:5

1

Solved

How to achieve this using Dynamic Linq Join and Dynamic Linq SelectMany
Sonni asked 13/5, 2011 at 18:50

2

Solved

I am building an ASP.Net MVC 3 application with Entity Framework 4. When the two pieces of code below are executed, both variables (query1 and query2) have a return type of System.Data.Objects.Obj...

1

Solved

I need a way to recreate dynamically generated reports at some point in the future. Long story short, I need to store a specific linq query (different for each report) into database and then execut...
Varicocele asked 25/1, 2011 at 13:20

1

Solved

If anyone is very familar with the Linq.Dynamic namespace I could use some help -- couldn't find any indepth resources on the internet. Basically I'm using DynamicExpression.ParseLambda to create ...
Kornher asked 31/12, 2010 at 5:35

2

Solved

I've got problem with sorting entries in JqGrid. Orderby seem to not work. I set breakpoint in code and I noticed, that orderby doesn't change order of elements. Any idea what could be wrong? I'm ...
Cubiform asked 2/11, 2010 at 14:20

5

Solved

I've a project which ask me to do such a BIG search engine but which is all dynamic. I mean I can have about 0 to 9 main "group" which have inside something like an infinite possibility of "where" ...
Heer asked 20/8, 2009 at 13:5

3

Solved

I have a combo box in Silverlight. It has a collection of values built out of the properties of one of my LINQ-to-SQL objects (ie Name, Address, Age, etc...). I would like to filter my results base...
Deery asked 30/1, 2009 at 20:29

3

I have a table in a ASP.NET MVC application that I want to be sortable (serverside) and filterable using AJAX. I wanted it to be fairly easy to use in other places and didn't feel like hardcoding t...
Serious asked 13/1, 2009 at 11:34

© 2022 - 2024 — McMap. All rights reserved.