From fa755f9b5e6e2b9f3703b9e7edc21fa6412e34ef Mon Sep 17 00:00:00 2001 From: "nathan.boileau" Date: Mon, 13 Mar 2023 17:29:18 +0100 Subject: [PATCH] =?UTF-8?q?D=C3=A9but=20liaison=20avec=20BD,=20implementat?= =?UTF-8?q?ion=20EFDataManager?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/apiLOL/EFDataManager.cs | 118 +++++++++++++++++++++++++++++--- 1 file changed, 107 insertions(+), 11 deletions(-) diff --git a/Sources/apiLOL/EFDataManager.cs b/Sources/apiLOL/EFDataManager.cs index 7814fa0..55e5759 100644 --- a/Sources/apiLOL/EFDataManager.cs +++ b/Sources/apiLOL/EFDataManager.cs @@ -10,19 +10,115 @@ namespace apiLOL // Constructor public EFDataManager(MyDbContext context) + { + _context = context; + } + + public IChampionsManager ChampionsMgr => throw new NotImplementedException(); + + public ISkinsManager SkinsMgr => throw new NotImplementedException(); + + public IRunesManager RunesMgr => throw new NotImplementedException(); + + public IRunePagesManager RunePagesMgr => throw new NotImplementedException(); + } + + public class EFChampionManager : IChampionsManager + { + private readonly MyDbContext _context; + + public EFChampionManager(MyDbContext context) { _context = context; } + + public Task AddItem(Champion? item) + { + throw new NotImplementedException(); + } - public IChampionsManager ChampionsMgr => throw new NotImplementedException(); - - public ISkinsManager SkinsMgr => throw new NotImplementedException(); - - public IRunesManager RunesMgr => throw new NotImplementedException(); - - public IRunePagesManager RunePagesMgr => throw new NotImplementedException(); - - // Implement the interface - - } + public Task DeleteItem(Champion? item) + { + throw new NotImplementedException(); + } + public Task UpdateItem(Champion? oldItem, Champion? newItem) + { + throw new NotImplementedException(); + } + + public Task GetNbItems() + { + throw new NotImplementedException(); + } + + public Task> GetItems(int index, int count, string? orderingPropertyName = null, bool @descending = false) + { + throw new NotImplementedException(); + } + + public Task GetNbItemsByName(string substring) + { + throw new NotImplementedException(); + } + + public Task> GetItemsByName(string substring, int index, int count, string? orderingPropertyName = null, + bool @descending = false) + { + throw new NotImplementedException(); + } + + + public Task GetNbItemsByCharacteristic(string charName) + { + throw new NotImplementedException(); + } + + public Task> GetItemsByCharacteristic(string charName, int index, int count, string? orderingPropertyName = null, + bool @descending = false) + { + throw new NotImplementedException(); + } + + public Task GetNbItemsByClass(ChampionClass championClass) + { + throw new NotImplementedException(); + } + + public Task> GetItemsByClass(ChampionClass championClass, int index, int count, string? orderingPropertyName = null, + bool @descending = false) + { + throw new NotImplementedException(); + } + + public Task GetNbItemsBySkill(Skill? skill) + { + throw new NotImplementedException(); + } + + public Task> GetItemsBySkill(Skill? skill, int index, int count, string? orderingPropertyName = null, bool @descending = false) + { + throw new NotImplementedException(); + } + + public Task GetNbItemsByRunePage(RunePage? runePage) + { + throw new NotImplementedException(); + } + + public Task> GetItemsByRunePage(RunePage? runePage, int index, int count, string? orderingPropertyName = null, + bool @descending = false) + { + throw new NotImplementedException(); + } + + public Task GetNbItemsBySkill(string skill) + { + throw new NotImplementedException(); + } + + public Task> GetItemsBySkill(string skill, int index, int count, string? orderingPropertyName = null, bool @descending = false) + { + throw new NotImplementedException(); + } + } }