0
下面是我試圖執行System.Collections.Generic.List <Plate>「不包含定義‘時間’並沒有擴展方法‘時間’
var usersQuery =
from user in Model.Users
select user.Plates;
var platesQuery =
from plate in usersQuery
group plate by plate.Time into grouping
select grouping;
我收到以下錯誤LINQ聲明
System.Collections.Generic.List<AllYourPlates.Domain.Entities.Plate>' does not contain a definition for 'Time' and no extension method 'Time' accepting a first argument of type 'System.Collections.Generic.List<AllYourPlates.Domain.Entities.Plate>' could be found (are you missing a using directive or an assembly reference?
我找不出什麼問題。
什麼是你想*實現*?我可以看到爲什麼查詢失敗,但不是它試圖做什麼。 – 2012-03-23 20:07:27