using LibEntityFramework; using Model; using TrucAuMilieu; ChampionEntity c1 = new ChampionEntity("champion1", "il est beau", "imagepng.jpeg"); Champion c2 = new Champion("joe"); Console.WriteLine("allo?"); var dataMgr = new DataBdd(); //dataMgr.ChampionsMgr.AddItem(c2); List list = dataMgr.ChampionsMgr.GetItems(0, dataMgr.ChampionsMgr.GetNbItems().Result).Result.ToList(); /*ChampionContext data = new ChampionContext(); data.Champs.ToList(); List l = data.listChampions();*/ foreach (var champion in list) { Console.WriteLine(champion.Name); }