ASP.NET Core: Razor Pages

Glossary of Terms

Field

Variables declared inside a class.

Can have private, public, protected or internal access modifiers. However, these are commonly private.

Property

Properties enable a class to expose a public way of getting and setting values, while hiding implementation or verification code. As such commonly used to allow a private field's values to be read and set (get and set). Properies have two special methods known as getters and setters. The getter get returns a value, the setter set sets a value ie

The value above is a keyword used in a setter that refers the value assigned to the property.

Auto-Implemented Property

As the use of getters and setters is such a common scenaro, the Auto-Implemented Property allows the use of a shorthand as follows:

Tag Helper

Tag Helpers are attached to HTML elements inside your Razor views, for example:

Tag Helpers have supeseded HTML helper that required the writing of methods mixed within HTML inside Razor views.

@Html.ActionLink(linkText: "Home", actionName: "Index")

The asp-action tag helper is used for consistent routing of links.

NuGet

Open source package management extension designed for the Microsoft development platform.

LINQ

Language Integrated Query (LINQ) a set of technologies for querying data. Designed to give a consist query experience whatever the data source - ie SQL, XML or Objects.

IActionResult

Directive