I am currently starting with a new tool called Webmatrix for creating websites based on CSHTML. Now I have some trouble with starting and cant find any help on other pages: I create Database call
var db = Database.Open("MyDB");
var selectQueryString = "SELECT * FROM a JOIN b ON a.id = b.id";
a and b both have the field "name" but I cant find any way to separate. I already tried
@foreach(var row in db.Query(selectQueryString)){
<tr>
<td>@row.id</td>
<td>@row.a.name</td>
<td>@row.b.name</td>
</tr>
}
As I know it from MySQL in PHP. But that doesnt work. Can anybody help me with this (I guess) very simple question?