问题说明:
- 博客问题纪录
- Use EF7, Linq Contains In is error.
- EF7 Code Commit
- adding (client side) support for Contains operator in query
EF7 版本(注意 rc):
- 旧版本:"EntityFramework": "7.0.0-beta2-11758"
- 新版本:"EntityFramework": "7.0.0.0-rc1-11898"
测试结果:
SQL Server Profiler 抓取 SQL 代码(客户端完成):
exec sp_executesql N'SELECT COUNT(*)
SELECT [b].[BlogCateId], [b].[BlogId], [b].[Url]
FROM [Blog] AS [b]
感谢 EF 团队!