how to map composite key in CRUD functionality
问题 I need to map based on two keys(comp and part). @foreach (var item in Model) { <tr> <td> @Html.DisplayFor(modelItem => item.comp) </td> <td> @Html.DisplayFor(modelItem => item.part) </td> ........................... <td> @Html.ActionLink("Edit", "Edit", new { id=item.comp }) | @Html.ActionLink("Details", "Details", new { id = item.comp }) | @Html.ActionLink("Delete", "Delete", new { id = item.comp }) </td> </tr> } how to use composite key in Index page and also in controller. public