C# EntityDataSource在哪里?

C# EntityDataSource在哪里?,c#,asp.net,webforms,entitydatasource,C#,Asp.net,Webforms,Entitydatasource,我有一个entitydatasource连接到我的数据库,我想使用Where属性过滤结果。作为测试,我有以下几点: it.CustomerID is not 6 我得到以下错误: The query syntax is not valid. Near term '6', line 6, column 25. 我想我输入的是错误的,但为什么呢?Where属性的使用遵循实体SQL语言。因此,我认为正确的语法是: it.CustomerID != 6 或 实体SQL引用-不等于运算符:Remov

我有一个entitydatasource连接到我的数据库,我想使用Where属性过滤结果。作为测试,我有以下几点:

it.CustomerID is not 6
我得到以下错误:

The query syntax is not valid. Near term '6', line 6, column 25.

我想我输入的是错误的,但为什么呢?

Where属性的使用遵循实体SQL语言。因此,我认为正确的语法是:

it.CustomerID != 6


实体SQL引用-不等于运算符:

Remove'is Not'To!=并确保我们不能在EntityDataSource上编写任何函数,如upper、lower。。等,但您可以按Linq查询方式执行此操作

可能使用!=或者不是?
it.CustomerID <> 6