我試圖從AdventureWork2012數據庫中使用VS 2012進行查詢,這裏是我的代碼,我從這裏得到了一個錯誤。我不知道如何解決它,每個人都可以告訴我如何解決這個問題。非常感謝!無法將類型'System.Collections.Generic.Lis <AnonymousType#1>'隱式轉換爲'System.Collections.Generic.List <AdventureCycle.Models.Product>'
Model.Name = (from ob in db.Products join od in db.ProductSubcategories on ob.ProductSubcategoryID equals od.ProductSubcategoryID
where ob.Name.Contains("Bike")
select new { ob.Name}).ToList();
什麼類型是'Model.Name'? –
它的**列表 **分類自拍模型名稱 –