日期:2014-05-20 浏览次数:20807 次
DataSet ds = dbsql.Query("select State from Articles");
if (ds.Tables[0].Rows.Count > 0)
{
for(int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
int states = Convert.ToInt32(ds.Tables[0].Rows[i]["State "]);
}
}
List<int> mylist = ds.Tables[0].AsEnumerable().Select(c => c.Field<int>("EmployeeID")).ToList<int>();