How to do it...

We will create a repository:

  1. First, we have to be sure that we have imported the following dependencies in project.json:
  1. Let's open a Developer Command Prompt for Visual Studio 2015. We will type the following command after it has been placed in the project folder:
dnx ef

The output of the preceding command is as follows:

  1. After that, we type the following command:
dnx ef scaffold "DatabaseConnectionString" EntityFramework.MicrosoftSqlServer --outputDir Models

The output of the preceding command is as follows:

We can see ...

Get ASP.NET Core MVC 2.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.