From the course: Learning Entity Framework Core
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Create an MVC application - Entity Framework Tutorial
From the course: Learning Entity Framework Core
Create an MVC application
- [Narrator] When we created our console application, we created a model and used Entity Framework to generate a database. It's the model first approach. In this chapter, we're going to be doing two major things different. Instead of a console app, we'll be creating an MVC application, and we'll be taking the database first approach by using Entity Framework to reverse-engineer our existing database to generate a model. Let's start off by creating our project. First thing we'll do is go to File, New, Project, and then from the left-hand side make sure under Templates, note we navigate down to Visual C#, and select Web, and on the right-hand side, we will choose ASP.NET Core Web Application (.NET Core), and we're going to name our application DemoExistingDbMVC, so let's go ahead and click OK. Once the new ASP.NET Core Web Application dialog appears, let's go ahead and make sure that authentication is set to no authentication, so just make sure you click on the right-hand side, change…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.