xxxxプログラマのメモ

先人に感謝と敬意:自分の困ったこと調べたことのメモ

.Net Core3.1 から .Net6 移行時のメモ

qiita.com

System.Text.Json

JSON.NETが気付いたら標準ライブラリではなくなっていました。
System.Text.Json に簡単に切り替わりましたが、JsonProperty, JsonIgnore のことを忘れていました・・・

Newtonsoft.Json から System.Text.Json に移行する - .NET | Microsoft Docs

Npgsql 6.0(個人的には破壊的変更)

Cannot write DateTime with Kind=Local to PostgreSQL type 'timestamp with time zone', only UTC is supported. Note that it's not possible to mix DateTimes with d
ifferent Kinds in an array/range. See the Npgsql.EnableLegacyTimestampBehavior AppContext switch to enable legacy behavior.

指示通りで回避は可能。最初これ読み飛ばしてハマりました。
6.0 Release Notes | Npgsql Documentation

AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);

BinaryFormatter

docs.microsoft.com


Thanks!