Fork me on GitHub

Display Name - Basic Sample

annotation(s) model property model value <label asp-for> @Html.DispayNameFor <display-name asp-for>
-
Id 1 Id Id
Display("First")
FirstName Vira First First
Display("Last")
LastName Duran Last Last
-
BirthDate 11/28/1978 12:00:00 AM BirthDate Birth Date
-
Email sit.amet@necanteMaecenas.co.uk Email Email
-
Salary 15587 Salary Salary
-
FavoriteColor red FavoriteColor Favorite Color
-
FullName Vira Duran FullName Full Name
Markup
<display-name asp-for="Id" />
<display-name asp-for="FirstName" />
<display-name asp-for="LastName" />
<display-name asp-for="BirthDate" />
<display-name asp-for="Email" />
<display-name asp-for="Salary" />
<display-name asp-for="FavoriteColor" />
<display-name asp-for="FullName" />