成免费的crm,久久国产精品新农夫导航新妓网,恋夜秀场全部视频安卓手机,女校花强奷在线播放A级

C# 實例 使用數據庫 顯示數據庫數據

c# 實例 使用數據庫 顯示數據庫數據

@{
var db = database.open("smallbakery"); 
var query = "select * from product"; 
}

<html> 
<body> 
<h1>small bakery products</h1> 
<table border="1" width="100%"> 
<tr>
<th>id</th> 
<th>product</th> 
<th>description</th> 
<th>price</th> 
</tr>
@foreach(var row in db.query(query))
{

<tr> 
<td>@row.id</td> 
<td>@row.name</td> 
<td>@row.description</td> 
<td align="right">@row.price</td> 
</tr> 
}
</table> 
</body> 
</html>

相關文章