You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
614 B
26 lines
614 B
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<ChampionEntity> l = context.Champs.ToList();
|
|
|
|
foreach (var champion in l) { Console.WriteLine(champion.Name); }
|
|
|
|
}
|
|
using (var data = new Data())
|
|
{
|
|
List<ChampionEntity> l = data.listChampions());
|
|
|
|
foreach (var champion in l) { Console.WriteLine(champion.Name); }
|
|
|
|
} |