Add new field in ASP.Net
So im learning ASP.Net from Microsoft doc, and when I com to this documentation:
https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/new-field?view=aspnetcore-8.0&tabs=visual-studio
I've done everything the doc said, but the Rating doesn't show anything. When I think it suppose to display the Rating "R" when I hardcoded it in the program. Also, the doc says I should able to perform other CRUD command with the Rating attribute, but I can't at all. Is it like how it suppose to work, or I actually have done something wrong ?
Part 8, add a new field to an ASP.NET Core MVC app
Part 8 of tutorial series on ASP.NET Core MVC.
3 Replies
$code
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
For longer snippets, use: https://paste.mod.gg/* Does it exist in the database?
* Does it contain the data you think it does?
* Are you fetching that data from the database?
* Are you sending it to the view properly?
* Are you displaying it in the view?