我正在尝试转换从 SQL 查询中返回的内容,但出现错误。
SqlCommand myCommand = "Select * from DB", xavierConnection);
SqlDataReader reader = null;
reader = myCommand.ExecuteReader();
while (reader.Read())
{
_accountNumber = (int)reader["Account Number"];
_callReportCode = (string)reader["Call Report Code"];
_GLbalance = (double)reader["Bank Owned Principal Assets"];
}
我应该改变什么才能使演员成功?