LINQ to Entity 不识别方法“System.String ToString()”,因此该方法无法转换为存储表达式。
最近在项目中一直遇到问题,其中最让人头疼的就是: LINQtoEntity不识别方法“System.StringToString()”,因此该方法无法转换为存储表达式。 错误出处为: ListenResource=this.CurrentDal.LoadItems(r=>r.ResourcePId==resourceId.ToString()).ToList(); 遇到问题需要自己解决