-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Example: To enable reverse engineering from an existing database does not work #99
Comments
Did you install the EntityFramework.Commands package? That is the package that brings in that command. BTW, best to view the docs at http://docs.efproject.net/en/latest/ as they are RST. GitHub partially renders them as MarkDown... but you don't get all the content. |
Yes i did install the commands Sent from my Samsung device -------- Original message -------- Did you install the EntityFramework.Commands package? That is the package that brings in that command. BTW, best to view the docs at http://docs.efproject.net/en/latest/ as they are RST. GitHub partially renders them as MarkDown... but you don't get all the content. Reply to this email directly or view it on GitHubhttps://github.com//issues/99#issuecomment-166991023. |
Couple more questions:
|
I tried this in a class library and a console app. Using the latest 4.x framework Sent from my Samsung device -------- Original message -------- Couple more questions:
Reply to this email directly or view it on GitHubhttps://github.com//issues/99#issuecomment-167008093. |
For you, are the steps to reproduce as simple as:
If so, there must be something specific to your installation. A couple of initial questions to help narrow things down:
Also just confirming that these are not ASP.NET 5 class libraries/console apps... since Package Manager Console commands do not work with those project types yet. |
I will try when i am back in the office in the new year.... thanks Sent from my Samsung device -------- Original message -------- For you, are the steps to reproduce as simple as:
If so, there must be something specific to your installation. A couple of initial questions to help narrow things down:
Also just confirming that these are not ASP.NET 5 class libraries/console apps... since Package Manager Console commands do not work with those project types yet. Reply to this email directly or view it on GitHubhttps://github.com//issues/99#issuecomment-167643390. |
I am having exactly the same problems. The only thing of note is that on executing the Install-Package EntityFramework.Commands -Pre command, it shows a Red error "Cannot bind parameter 'FilterScript'..." but continues and eventually says "Successfully installed 'EntityFramework.Commands 7.0.0-rc1-final' to ". Andy |
Thanks for your help I am going to give this a try. I just noticed that my PS Version is only 2.0 should I go to 3.0 for should I go to the latest and greatest. From: Rowan Miller [mailto:[email protected]] For you, are the steps to reproduce as simple as:
If so, there must be something specific to your installation. A couple of initial questions to help narrow things down:
Also just confirming that these are not ASP.NET 5 class libraries/console apps... since Package Manager Console commands do not work with those project types yet. — |
Update… I installed PS v4 amd that looks to have fixed my issue. But while running Scaffold-DbContext I got error ‘The given key was not present in the dictionary.’ This looks to be a known issue dotnet/efcore#3861 From: Rowan Miller [mailto:[email protected]] For you, are the steps to reproduce as simple as:
If so, there must be something specific to your installation. A couple of initial questions to help narrow things down:
Also just confirming that these are not ASP.NET 5 class libraries/console apps... since Package Manager Console commands do not work with those project types yet. — |
@bricelam we do require PS 3.0 right? @Aday12345 - Regarding #3861 that is fixed and will ship in RC2 (planned for next month). In the meantime you could get out nightly builds that include the fix https://www.myget.org/Gallery/aspnetvnext |
Thanks for all your help From: Rowan Miller [mailto:[email protected]] I just noticed that my PS Version is only 2.0 should I go to 3.0 for should I go to the latest and greatest. I installed PS v4 and that looks to have fixed my issue. @bricelamhttps://github.com/bricelam we do require PS 3.0 right? @Aday12345https://github.com/aday12345 - Regarding dotnet/efcore#3861 that is fixed and will ship in RC2 (planned for next month). In the meantime you could get out nightly builds that include the fix https://www.myget.org/Gallery/aspnetvnext — |
Yes, upgraded to PS4 and all seems to be fine now :-) Andy |
Great - I have #103 our for review to add this as a pre-requisite |
Thanks all for your work getting to the bottom of this one |
Yes, it's required by our module. Our module should fail to load without it; I wonder if the error is getting swallowed/hidden by NuGet... |
do you know when we will see RC2???? |
@Aday12345 No, but when we do, it'll be posted here. |
https://github.com/aspnet/EntityFramework.Docs/blob/master/docs/getting-started/full-dotnet/existing-db.rst
The example to enable reverse engineering from an existing database does not work:
Scaffold-DbContext -provider EntityFramework.MicrosoftSqlServer -connection "Server=(localdb)\mssqllocaldb;Database=Blogging;Trusted_Connection=True;"
when I tried this is vs2015 I get
The term 'Scaffold-DbContext' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:19
The text was updated successfully, but these errors were encountered: