LINQ的:数据表选择不工作,如果列名有空间吗?数据表、工作、空间、LINQ

由网友(水灬至清)分享简介:我想从数据表中选择行。选择标准包括安定,列名有空间B / W他们,你可以看到如下:I want to select rows from DataTable. Select criteria includes anding and the columns name have a space b/w them as yo...

我想从数据表中选择行。选择标准包括安定,列名有空间B / W他们,你可以看到如下:

I want to select rows from DataTable. Select criteria includes anding and the columns name have a space b/w them as you can see below:

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

我收到以下异常:

I am getting the following exception :

Syntax error: Missing operand after 'number' operator.

我缺少的是在这里吗?

What am I missing here ?

推荐答案

使用

[Line Number] = '001'

而不是

阅读全文

相关推荐

最新文章