Linq:如果列名中有空格,DataTable选择不起作用?

Gai*_*ter 3 .net c# linq datatable ado.net

我想从DataTable中选择行.选择条件包括anding和列名称有空格b/w它们如下所示:

int distributionLineIdex = import.VendorInvoiceLineDetailTable.Select    
       ("Number='AMEX0311_00011' and Line number='001'").Count();
Run Code Online (Sandbox Code Playgroud)

我收到以下异常:

Syntax error: Missing operand after 'number' operator.
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述 我在这里错过了什么?

Mar*_*rtW 14

使用

[Line Number] = '001'
Run Code Online (Sandbox Code Playgroud)

代替