在我的數據庫中有確實有國籍和分數的球員對象。 我需要嵌套我的分組的可能性。因爲它們是由客戶給出的,所以在這裏看起來沒有選擇。 所以我要窩他們喜歡 Players.Where(p => p.Created <= /*some date*/)
.GroupBy(p => p.Nationality) // group them by their nationality
.Selec
試圖映射以下 public class WorkPreferance
{
public int ID { get; set; }
public string Name { get; set; }
public IEnumerable<Location> PreferedLocations { get; set; }
}
public class Locatio