Witam, wygenerowałem automatycznie wypisywanie bazy danych.
Chciałbym się dowiedzieć co oznaczają poniższe funkcje:
@model IEnumerable<Zadanie1CEZ.Models.FizzBuzzRequestDTO>
@{
Layout = null;
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" href="~/css/StyleSheet.css" />
<title>Logi</title>
</head>
<body>
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.Tekst)
</th>
<th>
@Html.DisplayNameFor(model => model.ip)
</th>
<th>
@Html.DisplayNameFor(model => model.odp)
</th>
<th>
@Html.DisplayNameFor(model => model.ID)
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.Tekst)
</td>
<td>
@Html.DisplayFor(modelItem => item.ip)
</td>
<td>
@Html.DisplayFor(modelItem => item.odp)
</td>
<td>
@Html.DisplayFor(modelItem => item.ID)
</td>
<td>
<a asp-action="Edit" asp-route-id="@item.ID">Edit</a> |
<a asp-action="Details" asp-route-id="@item.ID">Details</a> |
<a asp-action="Delete" asp-route-id="@item.ID">Delete</a>
</td>
</tr>
}
</tbody>
</table>
<p>@Html.ActionLink("Powrót","Index")</p>
</body>
</html>
chodzi mi dokładnie o to:
<a asp-action="Edit" asp-route-id="@item.ID">Edit</a> |
<a asp-action="Details" asp-route-id="@item.ID">Details</a> |
<a asp-action="Delete" asp-route-id="@item.ID">Delete</a>
Mógłby ktoś wyjaśnić?