![](/img/trans.png)
[英]Upgrade .NET web application from VS2010 TO 2013 did not change the icon to VS2013
[英]LINQ Design Time Errors Upgrading From VS2010 to VS2013
升级到Visual Studio 2013之后,我在整个WCF Framework 4.0项目之一中看到错误。 每当有LINQ实体查询时,使用任何LINQ函数(例如Any(),Single(),SingleOrDefault(),OrderBy()等)时,都会看到此错误:
Error 3 The type arguments for method
'System.Linq.Enumerable.OrderBy<TSource,TKey>(System.Collections.Generic.IEnumerable<TSource>,
System.Func<TSource,TKey>)' cannot be inferred from the usage. Try
specifying the type arguments explicitly.
产生错误的示例代码行:
xxxxXXXXXXStatusList = xxxXXXXXContainer.XXXXXXXStatus.OrderBy(a => a.Status).ToList();
以及:
Error 42 Delegate
'System.Func<BusinessAccess.Entities.XXXPortal.XXXXXXXXInfo, int,
bool>' does not take 1 arguments
带有示例:
xxxxxxInfo = xxxXXXXXContainer.XXXXXList.Where(c => c.xxxxxxid.Equals(xxxxxxid)).Single();
这是我尝试过的:
任何想法表示赞赏。 显然,这是一个引用/编译配置问题,但目前使我难以理解。
非常感谢您的宝贵时间。
我们在内部找到它。 对于看到Intellisense全面问题但又能够成功构建的其他任何人:
我希望这可以帮助某人。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.