Identityserver4.admin: Migrations with Npgsql

Created on 1 Feb 2019  路  4Comments  路  Source: skoruba/IdentityServer4.Admin

I cloned your project and change to use Npgsql instead in RegisterDbContexts. When I try to add migrations I get this error:
Method 'Clone' in type 'Microsoft.EntityFrameworkCore.Infrastructure.Internal.NpgsqlOptionsExtension' from assembly 'Npgsql.EntityFrameworkCore.PostgreSQL, Version=1.1.1.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' does not have an implementation.

Any suggestion of what I can do to fix this?

docs

Most helpful comment

Make sure you've installed both Npgsql.EntityFrameworkCore.PostgreSQL and Npgsql.EntityFrameworkCore.PostgreSQL.Design. I remember having this issue once and uninstalling postgre dependencies and installing them again (with .Design) helped.

All 4 comments

Make sure you've installed both Npgsql.EntityFrameworkCore.PostgreSQL and Npgsql.EntityFrameworkCore.PostgreSQL.Design. I remember having this issue once and uninstalling postgre dependencies and installing them again (with .Design) helped.

Thanks it worked when adding Npgsql.EntityFrameworkCore.PostgreSQL and not only Npgsql.EntityFrameworkCore.PostgreSQL.Design
Maybe update the docs to also include Npgsql.EntityFrameworkCore.PostgreSQL here https://github.com/skoruba/IdentityServer4.Admin/blob/master/docs/EFMigration.md#postgresql ?

@knepe Feel free to send a PR our way. :-) I agree that should be added to the docs.

167 Added pull request for this one.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gokayokutucu picture gokayokutucu  路  3Comments

papyr picture papyr  路  3Comments

Hens94 picture Hens94  路  4Comments

yehia2amer picture yehia2amer  路  3Comments

imabdul-dev picture imabdul-dev  路  4Comments