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.
42 lines
1.0 KiB
42 lines
1.0 KiB
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(c1.EfToChamp());
|
|
//dataMgr.ChampionsMgr.AddItem(c2);
|
|
|
|
|
|
/*List<Champion> list1 = dataMgr.ChampionsMgr.GetItems(0, dataMgr.ChampionsMgr.GetNbItems().Result).Result.ToList();
|
|
|
|
//List<Champion> list2 = dataMgr.ChampionsMgr.GetItemsByName("oe", 0, 30).Result.ToList();
|
|
|
|
|
|
/*ChampionContext data = new ChampionContext();
|
|
|
|
data.Champs.ToList();
|
|
List<ChampionEntity> l = data.listChampions();*/
|
|
/*
|
|
foreach (var champion in list1)
|
|
{
|
|
Console.WriteLine(champion.Name + ' ' + champion.Bio);
|
|
}*/
|
|
|
|
|
|
//if (dataMgr.ChampionsMgr.DeleteItem(c2).Result)
|
|
// Console.WriteLine("joe est mort.");
|
|
|
|
foreach (var champion in dataMgr.ChampionsMgr.GetItems(0, dataMgr.ChampionsMgr.GetNbItems().Result).Result.ToList()) { Console.WriteLine(champion.Name); }
|
|
|
|
|
|
|
|
|
|
|