我有以下表达式,它从 DataRow 数组中获取传递的值 strValue 和 Selects;
expression = "InvoiceDate='" + strValue + "'"; //value in Locals window = "InvoiceDate='05/28/2013'"
我也尝试将列名作为值传递;
expression = "'" + strExpression + "'" + strValue + "'"; //value in Locals window = "InvoiceDate='05/28/2013'"
DataRow[] returnedRows;
returnedRows = theDataConn.DataSet.Tables["Invoices"].Select(expression); //Error
它返回一个“语法错误:‘05’运算符后缺少操作数”
locals窗口中的值是一样的??我在这里想念什么?