1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

dotnet8にしたときに Method not found: 'Void Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping.…とかでる

Last updated at Posted at 2024-02-29

dotnet8にアップグレードしたときにServer側で起こった

Method not found: 'Void Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping.

とか出てきた。
どうやらEFまわりみたい。ググってみたが、PGとかmysqlとかの情報ばかりだった。
(例えば:https://github.com/npgsql/efcore.pg/issues/2811

自分の環境ではこうして解決した

なぜかsql serverのパッケージが入っていなかった。

server.csproj
    <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.2" />

を追加すれば解決した。

バージョンアップまわりはこういうのが起こるとつらい…

1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?