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
Duration
39,976
Views
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 Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now