Coder Social home page Coder Social logo

Comments (5)

enchev avatar enchev commented on July 20, 2024 1

I’ll recheck it on Monday, and will publish update if everything works correctly.

from radzen-blazor.

enchev avatar enchev commented on July 20, 2024

https://forum.radzen.com/t/error-message-on-all-radzen-pages/17529/9?u=enchev

from radzen-blazor.

SeanMartz avatar SeanMartz commented on July 20, 2024

Ahh - So to summarize:

the error was caused by changing the BirthDate datatype on the Employee model to a DateOnly?. but that change was not propagated to the Northwind Data Service hosted at services.radzen.com/odata.

So when a request like this was made:

https://services.radzen.com/odata/Northwind/Employees?$top=4&$skip=0&$expand=NorthwindOrders($expand=Customer)&$count=true

the resulting JSON returned a DateTime not a DateOnly.

System.Text.Json does not have built in support for deserializing a DateTime to a DateOnly .

In theory, one could write a custom deserializer (https://stackoverflow.com/questions/71021064/serialize-json-from-object-to-string-dateonly), but I don't think that would support the filter functionality on the server side...

I think the easiest change is to re-add the functionality, without changing any of the models datatypes, unless it can be done in concert.

Open to any thoughts!

from radzen-blazor.

SeanMartz avatar SeanMartz commented on July 20, 2024

Sounds good! Have a nice weekend!!

from radzen-blazor.

SeanMartz avatar SeanMartz commented on July 20, 2024

Looks like this was merged in via PR #1548. Closing this issue. Thank you!

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.