【发布时间】:2023-04-01 12:20:01
【问题描述】:
这有什么问题?
int folderid = (from p in db.folder where p.isDefault == true select p.id).Last();
我得到这个错误
LINQ to Entities does not recognize the method 'Int32 Last[Int32]
(System.Linq.IQueryable`1[System.Int32])' method, and this method cannot be
translated into a store expression.
【问题讨论】:
标签: asp.net linq linq-to-sql