5 Using EF Core in ASP.NET Core web applications
This chapter covers
- Using EF Core in ASP.NET Core
- Using dependency injection in ASP.NET Core
- Accessing the database in ASP.NET Core MVC actions
- Using EF Core migrations to update a database
- Using async/await to improve scalability
In this chapter, you’ll pull everything together by using ASP.NET Core to build a real web application. Using ASP.NET Core brings in issues that are outside EF Core, such as dependency injection (covered in section 5.4) and async/await (covered in section 5.10). But they’re necessary if you’re going to use EF Core in this type of application.
This chapter assumes that you’ve read chapters 2-4 and know about querying and updating the database and what business logic ...
Get Entity Framework Core in Action, Second Edition 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.