0x01、前言学习ASP.NET Core也有一段时间了,虽说很多内容知识点还是处于一知半解的状态,但是基本的,还是略懂一二。如果有错误,还望见谅。本文还是和之前一样,Demo+在Linux下运行(CentOS7+dotnetcore sdk)开发环境:win10+vs2015+ ...
0x01、前言
学习
get='_blank'>ASP
.NET Core也有一段时间了,虽说很多内容知识点还是处于一知半解的状态,但是基本的,还是
添加Index.cshtml
1 @model IEnumerable<Catcher.EasyDemo.Models.Product> 2 @{ 3 ViewData["Title"] = "Product Index"; 4 } 5 <a asp-action="Add" asp-controller="Product">Add a New Product</a> 6 <div class="container"> 7 <table class="table table-responsive"> 8 9 <thead>10 <tr>11 <td>ID</td>12 <td>Name</td>13 <td>Price</td>14 <td>Source</td>15 <td>Opreation</td>16 </tr>17 </thead>18 19 <tbody>20 @foreach (var item in Model)21 {22 <tr>23 <td>@item.ProductId</td>24 <td>@item.ProductName</td>25 <td>@item.ProductPrice</td>26 <td>@item.ProductSource</td>27 <td>28 <a asp-action="Delete" asp-controller="Product" asp-route-pid="@item.ProductId">Delete</a>29 </td>30 </tr>31 }32 </tbody>33 </table>34 </div>
1 "connectionStrings": {2 "dapperConn": "server=127.0.0.1;database=nancydemo;user id=sa;password=123;"3 }
原标题:来份ASP.NET Core尝尝
关键词:ASP.NET
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。