Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create migrations after upgrading to .NET Core 3.0 #5

Closed
ury opened this issue Sep 29, 2019 · 6 comments
Closed

Unable to create migrations after upgrading to .NET Core 3.0 #5

ury opened this issue Sep 29, 2019 · 6 comments

Comments

@ury
Copy link

ury commented Sep 29, 2019

After upgrading my solution to .NET Core 3.0, I'm unable to create migrations when using the package.
When Add-Migration is executed, it results with the following error:

Method not found: 'Void Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator..ctor(Microsoft.EntityFrameworkCore.Migrations.IMigrationsAssembly, Microsoft.EntityFrameworkCore.Migrations.IHistoryRepository, Microsoft.EntityFrameworkCore.Storage.IDatabaseCreator, Microsoft.EntityFrameworkCore.Migrations.IMigrationsSqlGenerator, Microsoft.EntityFrameworkCore.Storage.IRawSqlCommandBuilder, Microsoft.EntityFrameworkCore.Migrations.IMigrationCommandExecutor, Microsoft.EntityFrameworkCore.Storage.IRelationalConnection, Microsoft.EntityFrameworkCore.Storage.ISqlGenerationHelper, Microsoft.EntityFrameworkCore.Diagnostics.IDiagnosticsLogger`1, Microsoft.EntityFrameworkCore.Storage.IDatabaseProvider)'.

I've verified that this is related to the package: When I remove it (together with all its references) from my project, Add-Migration is completed successfully.

@jmarbutt
Copy link

jmarbutt commented Oct 1, 2019

I am also having this issue.

@findulov
Copy link
Owner

findulov commented Oct 1, 2019

I haven't played with .NET Core 3.0 yet and will "get my hands dirty" with it these days and will find out what's causing the problem and fix it.

@M2xAy
Copy link

M2xAy commented Oct 28, 2019

Hi George
Firstly Thank you very much for your Project

I Updated my project to 3.0 but i receive the following exception
System.TypeLoadException: "Could not load type 'Microsoft.EntityFrameworkCore.RelationalMetadataExtensions' from assembly 'Microsoft.EntityFrameworkCore.Relational, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'."
on
temporalTableSqlBuilder.BuildTemporalTablesSql();

Metdadata API has changed
https://docs.microsoft.com/en-us/ef/core/what-is-new/ef-core-3.0/breaking-changes#metadata-api-changes

Have you any Idea ?

Best regards

@findulov
Copy link
Owner

Hi all,

A new version of the library is released which supports .NET Core 3.0.

Thank you for being patient enough and appreciate the project.

@M2xAy
Copy link

M2xAy commented Oct 29, 2019

Hi George

Thank you very much ! I will test it today

Best regards from Zurich

@ury
Copy link
Author

ury commented Nov 9, 2019

Sorry for the late response, and thanks for the update - seems to be working well.

@ury ury closed this as completed Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants