Query issue blazor

Hello team.
I have lost a query that has not undergone any change:

when it tries to execute that instruction, it does not give an error, but it exits the method without executing the rest of the instruction instructions.

Could it be due to an update?

Then, code in the service:

when it reaches ApplyQuery it exits the method and returns nothing and gives no error.

Any idea about it?

Thanks.

1 Like

thanks for your quick answer, but I don't understand how I can replace that query and do it in another way.

As a workaround, what I do is:

image

and later:

image

but this is not very optimal because I do not apply filters to the query.

Could you kindly show me an example of how to proceed?

You can simply reference System.Dynamic.Linq.Core in your project and the methods that are using strings as predicate will be picked from this library.

Great. Thanks again for your help.

Regards.

Hello again team,

First of all I apologize but I don't quite understand your suggestion.

I have included in the razor.cs:

using System.Linq.Dynamic.Core;

But I'm still in the same situation. When I try to launch this query it does nothing:

Besides doing nothing, it ignores the rest of the subsequent instructions and does not give any error. The problem comes when I try to filter by dates.

As I said before, I am very sorry for my lack of understanding, but I have a project with quite a few queries done this way and they have all stopped working correctly so I am in quite a hurry.

Once again, thanks for your contributions and excellent work.

The idea is to reference the NuGet as shown in the post I’ve referenced in my first reply.

1 Like

You were right. It´s working again! thanks a lot for your time.

If you want to skip using Dynamic Linq you can update your filter query to be valid C# - replace and with &&:

Filter = $"i => i.TSI >= (@0) && i.TSI <= (@1)"