摘要: @model MyMusicStore.Models.Album@{ ViewBag.Title = "Details";}Details Album @Html.DisplayNameFor(mode... 阅读全文
posted @ 2018-07-25 23:04 dxm809 阅读(95) 评论(0) 推荐(0) 编辑
摘要: @model MyMusicStore.Models.Album@{ ViewBag.Title = "Edit";}Edit@using (Html.BeginForm()){ @Html.AntiForgeryToken() ... 阅读全文
posted @ 2018-07-25 23:03 dxm809 阅读(112) 评论(0) 推荐(0) 编辑
摘要: @model MyMusicStore.Models.Album@{ ViewBag.Title = "Delete";}DeleteAre you sure you want to delete this? Album ... 阅读全文
posted @ 2018-07-25 23:00 dxm809 阅读(102) 评论(0) 推荐(0) 编辑
摘要: @model MyMusicStore.Models.Album@{ ViewBag.Title = "Create";}Create@using (Html.BeginForm()) { @Html.AntiForgeryToken() ... 阅读全文
posted @ 2018-07-25 22:56 dxm809 阅读(100) 评论(0) 推荐(0) 编辑
摘要: @model IEnumerable@{ ViewBag.Title = "Index";}Index @Html.ActionLink("Create New", "Create") @Html.Displa... 阅读全文
posted @ 2018-07-25 22:54 dxm809 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 1 创建MVC应用程序2 在Model里面创建实体类using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace MyMusicStore.Mode... 阅读全文
posted @ 2018-07-25 22:32 dxm809 阅读(138) 评论(0) 推荐(0) 编辑