Skip to content
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

Closed
Rick-Anderson opened this issue Mar 30, 2018 · 5 comments
Closed

Document [Required] attribute for Razor Pages properties #5834

Rick-Anderson opened this issue Mar 30, 2018 · 5 comments
Assignees

Comments

@Rick-Anderson
Copy link
Contributor

See this video.

@Rick-Anderson
Copy link
Contributor Author

@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

@guardrex
Copy link
Collaborator

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.

@Rick-Anderson
Copy link
Contributor Author

Rick-Anderson commented Apr 24, 2018

agreed, hence the almost. But where should it go? Maybe an H2 in the tutorials is enough?

@guardrex
Copy link
Collaborator

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.

@scottaddie
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants