Razor Pages (an alternative to MVC)

Menu
Menu

CRUD Scaffold

The Quick Way

The previous steps to create inserting, updating and deleting functionality can be quickly produced through a scaffolding feature in Visual Studio.

Create a new folder and then a new Razor page but select:

Add New Scaffold Item

Select the Film model and the appropriate DBContext:

CRUD settings

... and Visual Studio will create the rest.

CRUD files