Ⅰ 怎么写关于“IN”操作符的SQL语句的参数化命令
根据你说的描述,应该是EntityFramework(实体框架)、LinqToSQL或者Lamda表达式,关键是Linq。下面我给你点示例代码你看是不是。public void LinqToSqlGroupBy04() { var q = from p in db.Procts group p by p.CategoryID into g select new { g.Key, AveragePrice = g.Average(p => p.UnitPrice) }; ObjectDumper.Write(q, 1);}public void LinqToSqlWhere05() { var q = db.Procts.Where(p=>p.UnitPrice > 10m).Where(p=>p.Discontinued); ObjectDumper.Write(q, 0);}