2
6

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 5 years have passed since last update.

[C#][EntityFramework]EntityFrameworkでPostgreSQLにアクセスする

Last updated at Posted at 2018-03-08

業務で使ったので備忘録。
以下のURLを参照。
http://cream-worker.blog.jp/archives/1062859618.html

注意点は自動でapp.config(もしくはweb.config)に設定される以下の部分の「oldVersion」と「newVersion」をNugetでインストールされたNpgsqlのバージョンに合わせること

  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="Npgsql" publicKeyToken="5d8b90d52f46fda7" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.2.7.0" newVersion="2.2.7.0" /> // <= ココのバージョンを合わせる
      </dependentAssembly>
    </assemblyBinding>
  </runtime>

あと複合キーについてもメモ。
https://qiita.com/hahifu/items/58819f6f36433f20884d

以上。

2
6
0

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
2
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?