I am trying to follow this tutorial from Microsoft:
Razor Pages with Entity Framework Core in ASP.NET Core - Tutorial 1 of 8: [https://learn.microsoft.com/en-us/aspnet/core/data/ef-rp/intro?view=aspnetcore-5.0&tabs=visual-studio]
I created the project correctly, but i can't run the project because when i replace the copied code from this step in tutorial "Set up the site style" in my project: Views/Home/Index.cshtml and I try to run is showing me:
The type or namespace name 'IndexModel' could not be found...
The problem seems to be here:
@page
@model IndexModel
@{
ViewData["Title"] = "Home page";
}
Where is this model I can't find it, I just created the application, and the model does not exist? Or I pasted in the wrong file because in tutorial is saying: "Pages/Index.cshtml, replace the contents of the file with the following code:" I can't find neither "Pages" folder?
