DataClassesDataContext db = new DataClassesDataContext();
db.Log=Response.Output;
var result = from de in db.Department
where de.DepartmentParentID == 9
select de;
GridView1.DataSource = result;
GridView1.DataBind();
时间: 2024-10-16 03:36:10