mikependon / RepoDB

A hybrid ORM library for .NET.
Apache License 2.0
1.68k stars 122 forks source link

Feature npgsql timeEnhancement: Follow Npgsql connvention for DateTime and DateTimeOffset #1130

Closed anpin closed 1 year ago

anpin commented 1 year ago

This PR is closing feature request #1126 by refactoring of DateTime and DateTimeOffset handling according to Npgsql 6.x guidelines and by dropping the need to use AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);. Please note that I have only tested it against net7.0 target

mikependon commented 1 year ago

Thanks for this PR mate :rocket: