EF7 版本(注意 rc):
- 旧版本:"EntityFramework": "7.0.0-beta2-11758"
- 新版本:"EntityFramework": "7.0.0-rc1-11823"
测试结果:
SQL Server Profiler 抓取 SQL 代码(I want):
exec sp_executesql N'SELECT COUNT(*)
FROM [Blog] AS [b]
INNER JOIN [BlogCate] AS [c] ON [b].[BlogCateId] = [c].[CateId]
WHERE ([b].[Url] = @p0 AND [c].[CateName] = @p1)',N'@p0 nvarchar(23),@p1 nvarchar(3)',@p0=N'http://www.cnblogs.com/',@p1=N'ef7'
本文转自田园里的蟋蟀博客园博客,原文链接:http://www.cnblogs.com/xishuai/p/ef7-linq-join-count-longcount-error-fixed.html,如需转载请自行联系原作者