41

I am looking all over for this dll but can't find it anywhere? anyone know where to get it and can help me? Thanks!

twal
  • 6,999
  • 17
  • 48
  • 58

3 Answers3

41

Now it's available via NuGet gallery too.

Andriy K
  • 3,302
  • 31
  • 42
  • 1
    Beware, the description on this NuGet package is misleading. It does state 'This is the Microsoft assembly', but the package owner is not Microsoft. It really does not look like being officialy released by Microsoft. – Frédéric Feb 19 '14 at 16:02
  • Microsoft never actually released dll, it was only published as code. But if you're suspicious, you can always decompile it. – Andriy K Feb 20 '14 at 12:37
  • @AndriyK I think that is a dangerous attitude. If the authors are malicious, they can later release an update with malware in the code. Even if the current version is clean, you are essentially choosing to trust the authors for as long as you use the library the lifetime of your project (and perhaps you even spread this trust to other projects!). In the end, there is a big difference between trusting Microsoft and some strangers on the internet that act in their name. – Zero3 Jan 13 '17 at 16:47
  • Same can be said about almost any nuget dependency you use. It's always matter of trust. On the other hand, if there are security issues with library that has roughly 400 downloads daily, you won't be only person to mention it, and it will be removed way before your updated code reaches production. – Andriy K Jan 13 '17 at 22:48
36

You can get it from this link . It's a zip file that contains the dynamic link source. It's not a dll.

Originally posted on ScottGu's blog here

Geoff
  • 9,340
  • 7
  • 38
  • 48
  • ok thanks. what do I need to reference in my app to use it then? – twal Oct 21 '10 at 19:28
  • 10
    Just add the Dynamic.cs file to your project. It defines the namespace System.Linq.Dynamic. In your code place: using System.Linq.Dynamic; at the top of the file. – Geoff Oct 21 '10 at 19:34
  • I was wondering if anyone can explain why I can use OrderBy("someColumn") with this library but there is no definition for OrderByDescending("someColumn")? How would I order the elements in descending order when using Dynamic Library? – Marko Mar 13 '12 at 14:15
  • Is it possible that all I can do is OrderBy("someColumn").Reverse()? Seems like a hack to me... – Marko Mar 13 '12 at 14:36
  • 2
    @Marko I don't know if it is any less of a hack, but the way you do it is OrderBy("someColumn desc") – Geoff Mar 13 '12 at 15:45
  • Thanks Geoff that is the solution I was looking for! I imagine that in my solution I traverse the IQueryable twice 1st time to order it initially and then 2nd time to reverse the order but I might be wrong on this. In any case thanks for the answer... – Marko Mar 13 '12 at 17:12
  • Gahhhh! Why doesn't OrderBy return IOrderedQueryable!? – KellySandwiches Jul 07 '15 at 16:14
  • Does Dynamic LINQ also support set a column on the fly something like this: .Foreach("x => x.@0 = x.@0 * @1", "SomeColumnName", 1.10) – Fernando Torres Feb 14 '19 at 07:01
  • Why dont use EF Dynamic SQL instead Dynamic LINQ ?? DbSet.SqlQuery() DbContext.Database.SqlQuery() DbContext.Database.ExecuteSqlCommand() – Fernando Torres Feb 14 '19 at 13:33
7

Source file and .dll

GitHub

Nazar Tereshkovych
  • 1,443
  • 1
  • 12
  • 13