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?
精彩评论