1

尝试按ntext字段在数据库中查找记录时出现以下错误Entity Framework

enter code hereThe data types ntext and nvarchar are incompatible 
in the equal to operator.

我在这里找到了一些与该问题相关的文章,但我无法修改数据库和更改列类型。

4

1 回答 1

0

dbcontext.database.sqlquery我使用withlike运算符将ntext行与我的值进行比较来解决该问题。

于 2016-04-28T10:19:45.567 回答