-
Notifications
You must be signed in to change notification settings - Fork 25.2k
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
Required #6294
Required #6294
Conversation
@@ -5,7 +5,7 @@ description: Learn how Razor Pages in ASP.NET Core makes coding page-focused sce | |||
manager: wpickett | |||
monikerRange: '>= aspnetcore-2.0' | |||
ms.author: riande | |||
ms.date: 09/12/2017 | |||
ms.date: 5/12/2018 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"05" (leading zero)
aspnetcore/mvc/razor-pages/index.md
Outdated
@@ -205,6 +205,13 @@ The `OnPostDeleteAsync` method: | |||
* Calls `RedirectToPage` to redirect to the root Index page (`/Index`). | |||
|
|||
::: moniker range=">= aspnetcore-2.1" | |||
|
|||
## Mark Page properties as required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Page" in this context ... not a proper noun I think (?)
Since "as" precedes "required," it seems to be calling out the actual attribute name. Therefore, proper noun (?) ... either Required or [Required] (?)
aspnetcore/mvc/razor-pages/index.md
Outdated
`SetCompatibilityVersion` effectively sets the Razor Pages option `AllowMappingHeadRequestsToGetHandler` to `true`. The behavior is opt-in until the release of ASP.NET Core 3.0 Preview 1 or later. Each major version of ASP.NET Core adopts all of the patch release behaviors of the previous version. | ||
`SetCompatibilityVersion` effectively sets the Razor Pages option `AllowMappingHeadRequestsToGetHandler` to `true`. | ||
|
||
Rather than opting in to all 2.1 behaviors with `SetCompatibilityVersion`, you can explicitly opt-in to specific behaviors. The following code opts-in to the mapping HEAD requests to the GET handler. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see various remarks on phrasing "opting in to" vs. "opting into" ... I kind'a like the latter.
"opt-in" (verb) 👉 "opt in" but might add the "to" 👉 "opt into"
Same with the last "opts-in" (verb) ... "opts in" if not "opts into" as well.
to the mapping HEAD requests to the GET handler.
Drop the "the" in that phrase?
Fixes #5834
Review URL