日期:2014-05-17 浏览次数:20514 次
Dictionary<string, int> dicInfo=new Dictionary<string, int>(); dicInfo.Aggregate(strSql,(sql, e) => sql.AppendFormat( " insert into PRO_WorkloadInfo_Detail(detail_id,project,Data) values(@nextid,'{0}',{1}) ", e.key, e.Value)); //这边e.key报错,cannot access private field 'key' here //请问这是什么原因?