我收到一条错误,指出“指定的演员表无效”。我不知道该做什么,只是稍微有点不行。指定的演员表无效错误
List<string> productCode = new List<string>();
List<string> productName = new List<string>();
List<int> quantity = new List<int>();
List<double> totalPrice = new List<double>();
List<double> totalTax = new List<double>();
int orderID = 0;
SqlCeCommand com2 = new SqlCeCommand("SELECT TotalPrice, TotalTax FROM Order_Details WHERE OrderID = ('" + orderID + "')", con);
SqlCeDataReader dr2 = com1.ExecuteReader();
while (dr2.Read())
{
totalPrice.Add(dr2.GetDouble(0));
totalTax.Add((double)dr2[1]);
j++;
}
吗? – Gusdor
确实发生什么线错误请不要在标题中使用的标签,但标签正确的问题:http://meta.stackexchange.com/questions/19190/should-questions-include-tags-in-their-titles – bump
什么是你的柱子的类型NS? –