Skip to content

Example: To enable reverse engineering from an existing database does not work #99

Closed
@adayIvey

Description

@adayIvey

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

  • Scaffold-DbContext <<<< -provider EntityFramework.MicrosoftSqlServer -connection "Server=sqldev\sqltest;Database=IveyCore;Trusted_Connection=True;"
    • CategoryInfo : ObjectNotFound: (Scaffold-DbContext:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions