System.Linq.Dynamic.Core Conflict #1656

Open
opened 2026-01-29 17:56:52 +00:00 by claunia · 0 comments
Owner

Originally created by @derekwelton on GitHub (Mar 6, 2025).

Describe the bug
I have a Web API that host a blazor web assembly app. I am using the Dynamic Linq nuget package as well as Radzen. Dynamic Linq is reference in my API, and Radzen is in my web assembly project. Since its hosted, the Web API has access to Radzen.

Within the radzen library, exists a static class called "DynamicExtensions" using the namespace: System.Linq.Dynamic.Core. I wanted to use the Dynamic Linq library functions for "OrderBy", but it is defaulting to the Radzen version. I did not know this until the latest Radzen version 6.2.3 where you made changes to the "OrderBy" resulting in my ef core queries throwing an exception.

I solved this by switching from
query.OrderBy("value")
and switched it to
DynamicQueryableExtensions.OrderBy(query,"value");

My recommendation is to change the namespace for 'DynamicExtensions' to something else to avoid this conflict. Dynamic Linq is a very popular library and believe they have more right to that namespace, but that's my opinion.

I solved my issue so this is more of a suggestion rather than a bug report.

Originally created by @derekwelton on GitHub (Mar 6, 2025). **Describe the bug** I have a Web API that host a blazor web assembly app. I am using the Dynamic Linq nuget package as well as Radzen. Dynamic Linq is reference in my API, and Radzen is in my web assembly project. Since its hosted, the Web API has access to Radzen. Within the radzen library, exists a static class called "DynamicExtensions" using the namespace: System.Linq.Dynamic.Core. I wanted to use the Dynamic Linq library functions for "OrderBy", but it is defaulting to the Radzen version. I did not know this until the latest Radzen version 6.2.3 where you made changes to the "OrderBy" resulting in my ef core queries throwing an exception. I solved this by switching from `query.OrderBy("value")` and switched it to `DynamicQueryableExtensions.OrderBy(query,"value");` My recommendation is to change the namespace for 'DynamicExtensions' to something else to avoid this conflict. Dynamic Linq is a very popular library and believe they have more right to that namespace, but that's my opinion. I solved my issue so this is more of a suggestion rather than a bug report.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1656