Skip to content

Commit

Permalink
🐛 Specify output dir in ASP.NET tutorial
Browse files Browse the repository at this point in the history
Ensures that files end up in the Models folder
Also moving to an inline code snippet rather than a file include
Fixes #217
  • Loading branch information
rowanmiller committed Jul 7, 2016
1 parent 963001e commit 916bb7b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.

This file was deleted.

4 changes: 3 additions & 1 deletion docs/platforms/aspnetcore/existing-db.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ Now it's time to create the EF model based on your existing database.
* :menuselection:`Tools –> NuGet Package Manager –> Package Manager Console`
* Run the following command to create a model from the existing database. If you receive an error stating the term 'Scaffold-DbContext' is not recognized as the name of a cmdlet, then close and reopen Visual Studio.

.. literalinclude:: _static/reverse-engineer-command.txt
.. code-block:: text
Scaffold-DbContext "Server=(localdb)\mssqllocaldb;Database=Blogging;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models
The reverse engineer process created entity classes and a derived context based on the schema of the existing database. The entity classes are simple C# objects that represent the data you will be querying and saving.

Expand Down

This file was deleted.

5 changes: 4 additions & 1 deletion docs/platforms/full-dotnet/existing-db.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ Now it's time to create the EF model based on your existing database.
* :menuselection:`Tools –> NuGet Package Manager –> Package Manager Console`
* Run the following command to create a model from the existing database

.. literalinclude:: _static/reverse-engineer-command.txt
.. code-block:: text
Scaffold-DbContext "Server=(localdb)\mssqllocaldb;Database=Blogging;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer
The reverse engineer process created entity classes and a derived context based on the schema of the existing database. The entity classes are simple C# objects that represent the data you will be querying and saving.

Expand Down

0 comments on commit 916bb7b

Please sign in to comment.