关于DbDataAdapter的问题
我的代码是:DbCommand cmd = CreateCommand();
cmd.CommandType = CommandType.Text;
cmd.Parameters.AddRange(commandParameters);
cmd.CommandText = select * from UserInfo where UserInfo.DELETESIGN = 0 ;
DbDataAdapter adapter = new SqlDataAdapter((SqlCommand)cmd);
adapter.SelectCommand = cmd;
DataTable dt = new DataTable();
pageArg.RecordsCount = adapter.Fill(1, 20, dt);
return dt;
但是为什么我这样写填充不了DT呢 ? 确认数据库中有数据
补充:.NET技术 , C#