@{
var db = Database.Open("SmallBakery") ;
var query = "SELECT * FROM Product ORDER BY Name";
var data = db.Query(query);
var grid = new WebGrid(data);
}
<html>
<head>
<title>使用 WebGrid 助手显示数据</title>
</head>
<body>
<h1>小型面包店产品</h1>
<div id="grid">
@grid.GetHtml()
</div>
</body>
</html>