Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System.Linq.Dynamic.Core vs System.Linq.Dynamic

Tags:

dynamic-linq

What is the difference between System.Linq.Dynamic.Core and System.Linq.Dynamic? I am currently using System.Linq.Dynamic and it does not contain support for Select and SelectMany (among other extension methods). Does System.Linq.Dynamic.Core support these methods?

like image 999
jjf1978 Avatar asked Nov 17 '16 16:11

jjf1978


People also ask

What is System Linq dynamic core?

System.Linq.Dynamic is the Microsoft assembly for the .Net 4.0 Dynamic language functionality. System.Linq.Dynamic.Core is a .NET Core port of the the Microsoft assembly for the .Net 4.0 Dynamic language functionality.

What is dynamic Linq C#?

The Dynamic LINQ library exposes a set of extension methods on IQueryable corresponding to the standard LINQ methods at Queryable, and which accept strings in a special syntax instead of expression trees.

Is Dynamic Linq safe?

And Dynamic Linq is actually composed from strings, therefore it is potentially prone to attack by injection. Obviously, the attacker will have to be aware of the fact that you are using DynamicLinq and could attack only preparing the data so it results in valid malicious Dynamic Linq query.


2 Answers

System.Linq.Dynamic.Core is more up to date and has more functionality and does also support NET Core / NETStandard (besides net35, net40 and net45 and up)

SelectMany is indeed supported.

For more information see the github page and browse the examples, unit-tests and help page.

Note: I'm the maintainer from this project.

like image 145
Stef Heyenrath Avatar answered Oct 19 '22 09:10

Stef Heyenrath


See description on github:

  1. System.Linq.Dynamic

  2. System.Linq.Dynamic.Core

System.Linq.Dynamic is the Microsoft assembly for the .Net 4.0 Dynamic language functionality. System.Linq.Dynamic.Core is a .NET Core port of the the Microsoft assembly for the .Net 4.0 Dynamic language functionality

like image 39
Mikhail Avatar answered Oct 19 '22 07:10

Mikhail