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

Required #6294

Merged
merged 6 commits into from
May 9, 2018
Merged

Required #6294

merged 6 commits into from
May 9, 2018

Conversation

Rick-Anderson
Copy link
Contributor

@Rick-Anderson Rick-Anderson commented May 9, 2018

@Rick-Anderson Rick-Anderson requested a review from scottaddie May 9, 2018 04:19
@@ -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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"05" (leading zero)

@@ -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
Copy link
Collaborator

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] (?)

`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.
Copy link
Collaborator

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?

@Rick-Anderson Rick-Anderson merged commit a259ca5 into master May 9, 2018
@Rick-Anderson Rick-Anderson deleted the require/ra branch May 9, 2018 18:00
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

Successfully merging this pull request may close these issues.

2 participants