2017年11月22日水曜日

ASP.NET MVC CRUD With Dapper (Micro ORM)

ASP.NET MVC CRUD With Dapper (Micro ORM)


  1. @model IEnumerable<DapperMvc.Models.Friend>  
  2.   
  3. @{  
  4.     ViewBag.Title = "Index";  
  5. }  
  6.   
  7. <h2>Index</h2>  
  8.   
  9. <p>  
  10.     @Html.ActionLink("Create New""Create")  
  11. </p>  
  12. <table class="table">  
  13.     <tr>  
  14.         <th>  
  15.             @Html.DisplayNameFor(model => model.FriendName)  
  16.         </th>  
  17.         <th>  
  18.             @Html.DisplayNameFor(model => model.City)  
  19.         </th>  
  20.         <th>  
  21.             @Html.DisplayNameFor(model => model.PhoneNumber)  
  22.         </th>  
  23.         <th></th>  
  24.     </tr>  
  25.   
  26. @foreach (var item in Model) {  
  27.     <tr>  
  28.         <td>  
  29.             @Html.DisplayFor(modelItem => item.FriendName)  
  30.         </td>  
  31.         <td>  
  32.             @Html.DisplayFor(modelItem => item.City)  
  33.         </td>  
  34.         <td>  
  35.             @Html.DisplayFor(modelItem => item.PhoneNumber)  
  36.         </td>  
  37.         <td>  
  38.             @Html.ActionLink("Edit""Edit"new { id=item.FriendID }) |  
  39.             @Html.ActionLink("Details""Details"new { id=item.FriendID }) |  
  40.             @Html.ActionLink("Delete""Delete"new { id=item.FriendID })  
  41.         </td>  
  42.     </tr>  
  43. }  
  44.   
  45. </table>  
元ネタ http://www.c-sharpcorner.com/article/asp-net-mvc-crud-with-dapper-micro-orm/

dbMAGIC MS-SQLのIDENTITY項目のDBタイプ

INTEGER IDENTITY


2017年11月15日水曜日

WebBrowserコントロールのレンダリングモードをデフォルトのIE7から最新IEモードに変更する

WebBrowserコントロールのレンダリングモードをデフォルトのIE7から最新IEモードに変更する



WebBrowserControlの初期値はIE7のレンダリングだった。
最新のレンダリングにするには、レジストリを変更する。

実行するexeがどのレンダリングを使用するか?を設定することで変更出来る。