Entity Framework Npgsqlのメモ
<connectionStrings> <add name="dbContext" connectionString="Server=127.0.0.1;Port=5432;Database=postgres;UserId=postgres;Password=postgres;Timeout=60;" providerName="Npgsql" /> </connectionStrings> <system.data> <DbProviderFactories> <remove invariant="Npgsql" /> <add name="Npgsql Data Provider" invariant="Npgsql" support="FF" description=".Net Framework Data Provider for Postgresql" type="Npgsql.NpgsqlFactory, Npgsql" /> </DbProviderFactories> </system.data> <entityFramework> <providers> <provider invariantName="Npgsql" type="Npgsql.NpgsqlServices, EntityFramework6.Npgsql" /> </providers> </entityFramework>
【C#】PostgreSQLでEntityFrameworkの使用方法#2 | ぷろちゃん