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

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.

主站蜘蛛池模板: 正阳县| 长春市| 营山县| 沙田区| 新平| 石嘴山市| 和田县| 丽江市| 玉山县| 垣曲县| 新和县| 永康市| 昌吉市| 利川市| 永平县| 隆化县| 丹江口市| 波密县| 大厂| 缙云县| 长葛市| 册亨县| 大荔县| 阿瓦提县| 资溪县| 蓝田县| 乌苏市| 延边| 平远县| 海淀区| 延寿县| 万宁市| 铜梁县| 榕江县| 潜江市| 鄂尔多斯市| 盱眙县| 吴桥县| 温泉县| 炎陵县| 长沙县|