联合多表查询
查询:
linqDBDataContext db = new linqDBDataContext();
stu d = db.stu.Where(p => p.sid == 2).FirstOrDefault();
if (d != null)
{
var Marks = d.marks;
GridView1.DataSource = Marks;
GridView1.DataBind();
db.SubmitChanges();//提交给数据库(增,删,改都需要提交到库)
}
添加ÿ