1
嗨選擇Func鍵 我想使用Lambda表達式和編寫代碼:在Lambda表達式專家
Func<Regions, SelectAllRegion> Select = r => new {r.RegionID,r.RegionDescription};
clsr.SelectAll<SelectAllRegion>(Select);
,但我不works.It提出這個錯誤:
Cannot implicitly convert type 'AnonymousType#1' to 'SelectAllRegion'
我應該如何寫這個代碼?