Skip to content

Does this support DateOnly/TimeOnly? #142

Closed

Description

@VictorioBerra

A recent PR to Dapper added support for DateOnly/TimeOnly. Is creating a date field in Microsoft SQL Server + DateOnly in C# supported by zzzprojects Dapper-Plus?

Activity

  1. JonathanMagnan commented on Mar 14, 2024

    @JonathanMagnan
    Member

    Hello @VictorioBerra ,

    That's a good question; I know we already support it for our Entity Framework Extensions library, but I'm not sure for Dapper Plus. I will ask my developer to look at it.

    Best Regards,

    Jon

  2. JonathanMagnan commented on Mar 19, 2024

    @JonathanMagnan
    Member

    Hello @VictorioBerra ,

    Just to let you know that DateOnly and TimeOnly will be supported the next time we release Dapper Plus (normally on Tuesday 26)

    Best Regards,

    Jon

  3. VictorioBerra commented on Mar 19, 2024

    @VictorioBerra
    Author

    That is exciting, thank you! So we can create a MSSQL date col and a DateOnly C# prop and it will all magically work?

  4. JonathanMagnan commented on Mar 19, 2024

    @JonathanMagnan
    Member

    Yup, as soon as the new version is released.

    I didn't test it but my employee told me it could already work with the current version by adding both type this way:

    DapperPlusManager.AddCustomSupportedType(typeof(DateOnly));
    DapperPlusManager.AddCustomSupportedType(typeof(TimeOnly));

    Best Regards,

    Jon

  5. JonathanMagnan commented on Mar 26, 2024

    @JonathanMagnan
    Member

    Hello @VictorioBerra ,

    The support to DateOnly and TimeOnly has been added in the version 7.4.0.

    Could you test it and let us know if everything is working as expected?

    Best Regards,

    Jon

  6. VictorioBerra commented on Apr 8, 2024

    @VictorioBerra
    Author

    Thank you @JonathanMagnan sorry for the delay, it worked great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions