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();本文共 270 字,大约阅读时间需要 1 分钟。
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();转载于:https://www.cnblogs.com/xiaoshi518/p/4676532.html