模拟QQ下拉菜单 int ParentID = Convert.ToInt32(dv[i]["ids"].ToString()); string strSql2 = "select * from tb_child where parentId="+ParentID; SqlDataAdapter dal2 = new SqlDataAdapter(strSql2,com); DataSet ds2 = new DataSet(); dal2.Fill(ds2, "db_Menu"); Data
C # programmers at any level need to learn about LINQ (Language-Integrated Query), Microsoft’s breakthrough technology for simplifying and unifying data access from any data source. With LINQ you can write more elegant and flexible code, not just to
using System; using System.Collections.Generic; using System.Text; using System.Web; using System.Configuration; using System.Data; using System.Data.SQLite; namespace DAL { public class Sqlite { /// /// 获得连接对象 // / /// public static SQLiteConnec