bonsoir j'ai exécuté ce code sur visual studio 2013 ultimate et sa marche pas je ne c'est pas pourquoi!!!! il me donneé Error sur Database.Open et Query
@{
var db = Database.Open("hr");
var query = "SELECT * FROM Product";
}
<html>
<body>
<h1>HR 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 style="text-align:right">@row.Price</td>
</tr>
}
</table>
</body>
</html>
Partager