Code Monkey home page Code Monkey logo

Comments (2)

StevenRasmussen avatar StevenRasmussen commented on August 16, 2024

This is technically possible (with some caveats) but I'm curious why you might want to store it as a DateTimeOffset instead of a DateTime2 since the concept of an Instant implies that there is no offset or timezone. I guess if you were working with a legacy database which happened to store the data in a DateTimeOffset column then that could perhaps be the only reason to do so but all of the data would need to be stored with the same offset.

Is there any reason why you would not just use an OffsetDateTime NodaTime type instead (which maps to a DateTimeOffset in SQL)?

from efcore.sqlserver.nodatime.

djonphillips avatar djonphillips commented on August 16, 2024

Thank you. I have reverted back to using Instant and DateTime2 which I can achieve using your package

from efcore.sqlserver.nodatime.

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.