我收到一条错误消息,提示“指定的演员表无效。” 我不知道该怎么办,试了一下,但没有去。
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++;
}