using LibEntityFramework; using TrucAuMilieu; ChampionEntity c1 = new ChampionEntity("champion1", "il est beau", "imagepng.jpeg"); Console.WriteLine("allo?"); using (var context = new ChampionContext()) { context.Add(c1); context.SaveChanges(); Console.WriteLine("champion ajouté"); List l = context.Champs.ToList(); foreach (var champion in l) { Console.WriteLine(champion.Name); } } using (var data = new Data()) { List l = data.listChampions()); foreach (var champion in l) { Console.WriteLine(champion.Name); } }