1
我有嘗試使用Entity Framework
實體框架5 NTEXT等於錯誤
enter code hereThe data types ntext and nvarchar are incompatible
in the equal to operator.
ntext
場找到在數據庫中的記錄時,下面的錯誤,我發現了幾個文章在這裏涉及到這個問題,但我不能修改數據庫和更改列類型。
我有嘗試使用Entity Framework
實體框架5 NTEXT等於錯誤
enter code hereThe data types ntext and nvarchar are incompatible
in the equal to operator.
ntext
場找到在數據庫中的記錄時,下面的錯誤,我發現了幾個文章在這裏涉及到這個問題,但我不能修改數據庫和更改列類型。
我使用dbcontext.database.sqlquery
與like
運算符來解決該問題,將ntext
行與我的值進行比較。
向我們展示您的查詢或由EF生成的查詢? – CodeNotFound
@CodeNotFound初級'dbContext.Collection.FirstOrDefault(x => x.Field =「value」)' –