This video sets the stage so you can ultimately reverse engineer an existing database to create an MVC application. Get a demonstration of creating the new project, choosing the appropriate ASP.NET core application template, and setting the authentication.
- [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 authentication, and confirm…
- Entity Framework (EF) overview
- Uses for EF
- Installing EF
- Creating entities
- Creating the DbContext
- Performing migrations
- Creating an MVC application
- Installing EF packages
- Reverse engineering the model
- Performing context and dependency injection
- Creating the controller and the view
- Using SqlServerTypeMapper
Skill Level Intermediate
Q: This course was updated on 06/23/2017. What changed?
A: The following topics were updated: using the exercise files; Mac install prerequisites; Entity Framework on Mac, part 1; and Entity Framework on Mac, part 2.