我有一个简单的查询,我想根据QueryString值拉出数据。查询字符串将正确传递给此EF语句:
_ctx.Products.Where(i => i.Category == CollectionName).ToList();
查看SQL Profiler,上面的CollectionName被翻译成???
EX:
SELECT *
FROM [dbo].[Products] AS [Extent1]
WHERE [Extent1].[Category] = @p__linq__0',N'@p__linq__0 varchar(8000)',@p__linq__0='???'
如何让Entity Framework正确解析?