官术网_书友最值得收藏!

The Delete view

Blog.Url should be displayed instead of Blog ID in the Delete view as well:

    <dl class="dl-horizontal">
...
<dd>
@Html.DisplayFor(model => model.Blog.Url)
</dd>
</dl>

 The changes were reflected on the Delete confirmation screen that now displays the Blog URL instead of the Blog ID:

Delete a post

The Post list page doesn't display the deleted item, which ensures that the data has been deleted from the table:

List view after deleting a post

We have identified certain missing pieces of the puzzle in the CRUD operations that were covered in Chapter 1Kickstart - Introduction to Entity Framework Core because there is no specific change that needs to be addressed in the database-first approach.

主站蜘蛛池模板: 南川市| 北宁市| 海丰县| 柳州市| 万盛区| 名山县| 杭锦后旗| 云霄县| 京山县| 柳州市| 共和县| 师宗县| 雷波县| 沿河| 无锡市| 叙永县| 谢通门县| 德令哈市| 邵阳县| 北流市| 青浦区| 文水县| 基隆市| 广宁县| 嘉义市| 乐平市| 汕尾市| 紫金县| 观塘区| 南乐县| 鄢陵县| 富源县| 务川| 尚义县| 金寨县| 中阳县| 和政县| 榕江县| 泸溪县| 陆河县| 平江县|