我想从DataTable中选择行。选择条件包括anding,并且列名称在它们之间有一个空格b/w,如下所示:

int distributionLineIdex = import.VendorInvoiceLineDetailTable.Select
       ("Number='AMEX0311_00011' and Line number='001'").Count();

我收到以下异常:
Syntax error: Missing operand after 'number' operator.

我在这里想念什么?

最佳答案


[Line Number] = '001'

反而

关于c# - Linq :DataTable select does not work if column name has space in it?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/5876037/

10-17 02:12