110,534
社区成员
发帖
与我相关
我的任务
分享
var prods = db.Orders.Join(db.Cardnumbers, u => u.ProName, d => d.ProdName, (u, d) => new { u, d }).Select(o => o).Where(p => p.u.OrderNum == "20190527103814").ToList();
<table class="layui-table">
<thead>
<tr>
<th>商品名称</th>
<th>商品卡号</th>
</tr>
</thead>
<tbody>
@foreach (var item in ViewBag.orders)
{
<tr>
<td>@item.d.ProdName</td>
</tr>
}
</tbody>
</table>