Aspnetcore.docs: Document [Required] attribute for Razor Pages properties

Created on 30 Mar 2018  路  5Comments  路  Source: dotnet/AspNetCore.Docs

Most helpful comment

Maybe in here :point_right: 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.

All 5 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 :point_right: 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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

royshouvik picture royshouvik  路  3Comments

Rick-Anderson picture Rick-Anderson  路  3Comments

Raghumu picture Raghumu  路  3Comments

madelson picture madelson  路  3Comments

wgutierrezr picture wgutierrezr  路  3Comments