开发者

EF and Chinese Simplified in where clause

I have a simply query where I want to pull data out based on a QueryString value. The query string gets passed in correctly to this EF statement:

_ctx.Products.Where(i => i.Category == CollectionName).ToList();

Looking at SQL Profiler the CollectionName above gets translated into ???

EX:

SELECT *
FROM [dbo].[Products] AS [Extent1]
WHERE [Extent1].[Category] = @p__linq__0',N'@p__linq__0 varchar(8000)',@p__lin开发者_如何学编程q__0='???'

How do I get Entity Framework to parse this correctly?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜