Scaffold the model

we can automatically generate create,update and delete classes from a model .

1:- In visual studio right click on pages folder and create new folder Pages

2:- Right click on this new folder and click Add > New Scaffolded Item.

3:- In the Add Scaffold dialog, select Razor Pages using Entity Framework (CRUD) > Add.

4:- complete this process with deafult options

check in pages folder new razor pages are generated

Leave a Reply

Your email address will not be published. Required fields are marked *