3

This site shows how to reverse-engineer an existing database to an ASP.NET Core EF model. What I found out is that the currently correct command should be (instead of "scaffold-dbcontext"):

dotnet ef dbcontext scaffold "server=mysqltestserver;userid=root;password=xx;database=yy;" MySql.Data.EntityFrameworkCore

I am not sure about the Provider parameter, so I tried this one but it does not work:

One or more errors occurred. (Unable to find provider assembly with name MySql.Data.EntityFrameworkCore. Ensure the specified name is correct and is referenced by the project.)

The new official MySQL EF Core packages have been existing only for a few days yet, so is this maybe a general problem in this version or could you tell me the correct provider?

Thank you

  • Did you get any solution to this? – Manoj Sethi Sep 1 '16 at 18:06
  • Unfortunately not yet, I moved to SQL Server Express temporarily. – Schaussi Sep 21 '16 at 11:20
  • Even I moved to MSSQL – Manoj Sethi Sep 21 '16 at 11:32

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.