-
Notifications
You must be signed in to change notification settings - Fork 25.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document [Required] attribute for Razor Pages properties #5834
Comments
@scottaddie @guardrex where should this be documented? I can add it to my Razor Pages tutorials, but it needs to be documented outside a tutorials. It could almost go in Razor Pages route and app convention features |
It's not really a "convention" in the strict sense, which is all that topic covers (at least in its current version). It focuses only on the PageConventionCollection bits. |
agreed, hence the almost. But where should it go? Maybe an H2 in the tutorials is enough? |
Maybe in here 👉 https://docs.microsoft.com/en-us/aspnet/core/mvc/razor-pages/?view=aspnetcore-2.1&tabs=visual-studio ... either near the first mention of how properties work with RP ... maybe even in its own little section. |
I like Luke's suggestion of putting it in that doc. Specifically, it seems to fit well in the following section: https://docs.microsoft.com/en-us/aspnet/core/mvc/razor-pages/?view=aspnetcore-2.1&tabs=visual-studio#writing-a-basic-form. |
See this video.
The text was updated successfully, but these errors were encountered: