Ef core include count. Copy. var animeList = db.Anime.Select(a => new AnimeInfo { Id = a.Id, Name = a.Name, EpisodeCount = a.Episodes.Count() }) .ToList();.
確定! 回上一頁