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.
25 lines
615 B
25 lines
615 B
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();
|
|
|
|
await dataMgr.ChampionsMgr.AddItem(c2);
|
|
Console.WriteLine("champion ajouté");
|
|
|
|
List<Champion> list = dataMgr.ChampionsMgr.GetItems(0, 5).Result.ToList();
|
|
|
|
|
|
/*
|
|
ChampionContext data = new ChampionContext();
|
|
|
|
data.Champs.ToList();
|
|
List<ChampionEntity> l = data.listChampions();*/
|
|
|
|
foreach (var champion in list) { Console.WriteLine(champion.Name); }
|