Coder Social home page Coder Social logo

Comments (3)

enchev avatar enchev commented on August 20, 2024

Sub properties in OData format are described with slash (/) not dot (.):
https://services.odata.org/v4/OData/OData.svc/Suppliers?$filter=Address/Street%20eq%20%27NE%20228th%27

Dates are not quoted:
https://services.odata.org/V4/OData/OData.svc/Products?$filter=ReleaseDate%20gt%202006-12-30T23:59:59.99Z

from radzen-blazor.

kerajel avatar kerajel commented on August 20, 2024

This is weird because System.Linq.Dynamic.Core can't consume either of these queries. Is Radzen supposed to work with some other library?

And when you say that dates are not quoted, does it apply to LINQ specification or odata? Because the second example shows linq-compatible string, not odata string.

When I filter DateTime using RadzenDataGrid I see the following in the LoadDataArgs: Filter: CreatedAt = DateTime("2024-08-14")
You see, in this case date is quoted, and System.Linq.Dynamic.Core can consume it contrary to the string produced by RadzenDataFilter

from radzen-blazor.

enchev avatar enchev commented on August 20, 2024

Indeed dates for Dynamic LINQ expression should be quoted - the expression added by this pull request is wrong:
1051bfa

I'll fix it.

from radzen-blazor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.