Skip navigation

Create the controller

Create the controller: Learning Entity Framework Core
Create the controller: Learning Entity Framework Core

Learn how to add an MVC controller that uses EF to query and save data. Find out that the controller takes a context as a constructor parameter. ASP.NET dependency injection will take care of passing an instance of context into the controller. The controller contains an Index action, which displays all actors in the database, and a create action, which inserts a new actor into the database.

Resume Transcript Auto-Scroll
Skill Level Intermediate
1h 35m
Show More Show Less

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.

Skills covered in this course
Developer Web Web Development Entity Framework

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start My Free Month

Start your free month on LinkedIn Learning, which now features 100% of courses. Develop in-demand skills with access to thousands of expert-led courses on business, tech and creative topics.

Start My Free Month