From 620d50c97d91151ad69585c563223352b0683629 Mon Sep 17 00:00:00 2001 From: Emre Date: Sun, 19 Mar 2023 12:39:59 +0100 Subject: [PATCH] Create DbManager :hammer: --- .../Controllers/WeatherForecastController.cs | 9 -- .../Sources/DTO/LargeImageDto.cs | 8 +- .../Sources/DTO/PageRequest.cs | 8 +- .../Sources/DTO/PageResponse.cs | 8 +- .../Sources/DTO/RuneDto.cs | 5 - .../Sources/DTO/SkillDto.cs | 8 +- .../Sources/DTO/SkinDto.cs | 8 +- .../Sources/DTO/SkinDtoC.cs | 8 +- .../Sources/DTO/enums/ChampionClassDto.cs | 8 +- .../Sources/DTO/enums/RuneFamilyDto.cs | 8 +- .../Sources/DTO/enums/SkillTypeDto.cs | 8 +- .../Sources/DbManager/DbManager.Champions.cs | 105 ++++++++++++++++++ .../Sources/DbManager/DbManager.RunePages.cs | 80 +++++++++++++ .../Sources/DbManager/DbManager.Runes.cs | 70 ++++++++++++ .../Sources/DbManager/DbManager.Skins.cs | 71 ++++++++++++ .../Sources/DbManager/DbManager.cs | 27 +++++ .../Sources/DbManager/DbManager.csproj | 15 +++ .../Sources/DbManager/Program.cs | 2 + .../Sources/LeagueOfLegends.sln | 14 ++- .../Sources/MyFlib/DataSeeder.cs | 6 - .../Sources/MyFlib/Entities/ChampionEntity.cs | 5 - .../MyFlib/Entities/CharacteristicEntity.cs | 7 +- .../MyFlib/Entities/DictionaryCategoryRune.cs | 5 - .../MyFlib/Entities/LargeImageEntity.cs | 7 +- .../Sources/MyFlib/Entities/RuneEntity.cs | 5 - .../Sources/MyFlib/Entities/RunePageEntity.cs | 7 +- .../Sources/MyFlib/Entities/SkillEntity.cs | 7 +- .../Sources/MyFlib/Entities/SkinEntity.cs | 7 +- .../MyFlib/Entities/enums/CategoryEntity.cs | 8 +- .../Entities/enums/ChampionClassEntity.cs | 8 +- .../MyFlib/Entities/enums/RuneFamilyEntity.cs | 8 +- .../MyFlib/Entities/enums/SkillTypeEntity.cs | 8 +- .../Sources/MyFlib/LolDbContext.cs | 5 - 33 files changed, 398 insertions(+), 165 deletions(-) create mode 100644 src/EntityFramework_LoL/Sources/DbManager/DbManager.Champions.cs create mode 100644 src/EntityFramework_LoL/Sources/DbManager/DbManager.RunePages.cs create mode 100644 src/EntityFramework_LoL/Sources/DbManager/DbManager.Runes.cs create mode 100644 src/EntityFramework_LoL/Sources/DbManager/DbManager.Skins.cs create mode 100644 src/EntityFramework_LoL/Sources/DbManager/DbManager.cs create mode 100644 src/EntityFramework_LoL/Sources/DbManager/DbManager.csproj create mode 100644 src/EntityFramework_LoL/Sources/DbManager/Program.cs diff --git a/src/EntityFramework_LoL/Sources/ApiLol/Controllers/WeatherForecastController.cs b/src/EntityFramework_LoL/Sources/ApiLol/Controllers/WeatherForecastController.cs index cf9e709..3c0f0e8 100644 --- a/src/EntityFramework_LoL/Sources/ApiLol/Controllers/WeatherForecastController.cs +++ b/src/EntityFramework_LoL/Sources/ApiLol/Controllers/WeatherForecastController.cs @@ -1,6 +1,4 @@ -using ApiLol.Mapper; using Microsoft.AspNetCore.Mvc; -using Model; namespace ApiLol.Controllers { @@ -23,13 +21,6 @@ namespace ApiLol.Controllers [HttpGet(Name = "GetWeatherForecast")] public IEnumerable Get() { - /* - var champion = new Champion(""); - - //var dtop = ChampionMapper.ToDto(champion); - - var dto = champion.ToDto();*/ - return Enumerable.Range(1, 5).Select(index => new WeatherForecast { Date = DateTime.Now.AddDays(index), diff --git a/src/EntityFramework_LoL/Sources/DTO/LargeImageDto.cs b/src/EntityFramework_LoL/Sources/DTO/LargeImageDto.cs index 133ac67..cc3036b 100644 --- a/src/EntityFramework_LoL/Sources/DTO/LargeImageDto.cs +++ b/src/EntityFramework_LoL/Sources/DTO/LargeImageDto.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace DTO +namespace DTO { public class LargeImageDto { diff --git a/src/EntityFramework_LoL/Sources/DTO/PageRequest.cs b/src/EntityFramework_LoL/Sources/DTO/PageRequest.cs index 2631eee..d23cbe2 100644 --- a/src/EntityFramework_LoL/Sources/DTO/PageRequest.cs +++ b/src/EntityFramework_LoL/Sources/DTO/PageRequest.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace DTO +namespace DTO { public class PageRequest { diff --git a/src/EntityFramework_LoL/Sources/DTO/PageResponse.cs b/src/EntityFramework_LoL/Sources/DTO/PageResponse.cs index c2d0fc4..1c57ddd 100644 --- a/src/EntityFramework_LoL/Sources/DTO/PageResponse.cs +++ b/src/EntityFramework_LoL/Sources/DTO/PageResponse.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace DTO +namespace DTO { public class PageResponse { diff --git a/src/EntityFramework_LoL/Sources/DTO/RuneDto.cs b/src/EntityFramework_LoL/Sources/DTO/RuneDto.cs index 9b20766..8839e07 100644 --- a/src/EntityFramework_LoL/Sources/DTO/RuneDto.cs +++ b/src/EntityFramework_LoL/Sources/DTO/RuneDto.cs @@ -1,9 +1,4 @@ using DTO.enums; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace DTO { diff --git a/src/EntityFramework_LoL/Sources/DTO/SkillDto.cs b/src/EntityFramework_LoL/Sources/DTO/SkillDto.cs index f0e1919..d69d5fb 100644 --- a/src/EntityFramework_LoL/Sources/DTO/SkillDto.cs +++ b/src/EntityFramework_LoL/Sources/DTO/SkillDto.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace DTO +namespace DTO { public class SkillDto { diff --git a/src/EntityFramework_LoL/Sources/DTO/SkinDto.cs b/src/EntityFramework_LoL/Sources/DTO/SkinDto.cs index 8ff7cca..bbbf2ff 100644 --- a/src/EntityFramework_LoL/Sources/DTO/SkinDto.cs +++ b/src/EntityFramework_LoL/Sources/DTO/SkinDto.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace DTO +namespace DTO { public class SkinDto { diff --git a/src/EntityFramework_LoL/Sources/DTO/SkinDtoC.cs b/src/EntityFramework_LoL/Sources/DTO/SkinDtoC.cs index 656fb33..13ffd48 100644 --- a/src/EntityFramework_LoL/Sources/DTO/SkinDtoC.cs +++ b/src/EntityFramework_LoL/Sources/DTO/SkinDtoC.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace DTO +namespace DTO { public class SkinDtoC { diff --git a/src/EntityFramework_LoL/Sources/DTO/enums/ChampionClassDto.cs b/src/EntityFramework_LoL/Sources/DTO/enums/ChampionClassDto.cs index 2f7e82d..91b2cba 100644 --- a/src/EntityFramework_LoL/Sources/DTO/enums/ChampionClassDto.cs +++ b/src/EntityFramework_LoL/Sources/DTO/enums/ChampionClassDto.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace DTO +namespace DTO { public enum ChampionClassDto { diff --git a/src/EntityFramework_LoL/Sources/DTO/enums/RuneFamilyDto.cs b/src/EntityFramework_LoL/Sources/DTO/enums/RuneFamilyDto.cs index 053249c..0d61fd5 100644 --- a/src/EntityFramework_LoL/Sources/DTO/enums/RuneFamilyDto.cs +++ b/src/EntityFramework_LoL/Sources/DTO/enums/RuneFamilyDto.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace DTO.enums +namespace DTO.enums { public enum RuneFamilyDto { diff --git a/src/EntityFramework_LoL/Sources/DTO/enums/SkillTypeDto.cs b/src/EntityFramework_LoL/Sources/DTO/enums/SkillTypeDto.cs index f416bdd..23165d0 100644 --- a/src/EntityFramework_LoL/Sources/DTO/enums/SkillTypeDto.cs +++ b/src/EntityFramework_LoL/Sources/DTO/enums/SkillTypeDto.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace DTO +namespace DTO { public enum SkillTypeDto { diff --git a/src/EntityFramework_LoL/Sources/DbManager/DbManager.Champions.cs b/src/EntityFramework_LoL/Sources/DbManager/DbManager.Champions.cs new file mode 100644 index 0000000..16a2328 --- /dev/null +++ b/src/EntityFramework_LoL/Sources/DbManager/DbManager.Champions.cs @@ -0,0 +1,105 @@ +using Model; + +namespace DbManager +{ + public partial class DbManager + { + public class ChampionsManager : IChampionsManager + { + private readonly DbManager parent; + + public ChampionsManager(DbManager parent) + => this.parent = parent; + + public Task AddItem(Champion? item) + { + throw new NotImplementedException(); + } + + public Task DeleteItem(Champion? item) + { + throw new NotImplementedException(); + } + + public Task> GetItemByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task> GetItemsByCharacteristic(string charName, int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task> GetItemsByClass(ChampionClass championClass, int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task> GetItemsByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task> GetItemsByRunePage(RunePage? runePage, int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task> GetItemsBySkill(Skill? skill, int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task> GetItemsBySkill(string skill, int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task GetNbItems() + { + throw new NotImplementedException(); + } + + public Task GetNbItemsByCharacteristic(string charName) + { + throw new NotImplementedException(); + } + + public Task GetNbItemsByClass(ChampionClass championClass) + { + throw new NotImplementedException(); + } + + public Task GetNbItemsByName(string substring) + { + throw new NotImplementedException(); + } + + public Task GetNbItemsByRunePage(RunePage? runePage) + { + throw new NotImplementedException(); + } + + public Task GetNbItemsBySkill(Skill? skill) + { + throw new NotImplementedException(); + } + + public Task GetNbItemsBySkill(string skill) + { + throw new NotImplementedException(); + } + + public Task UpdateItem(Champion? oldItem, Champion? newItem) + { + throw new NotImplementedException(); + } + } + } +} diff --git a/src/EntityFramework_LoL/Sources/DbManager/DbManager.RunePages.cs b/src/EntityFramework_LoL/Sources/DbManager/DbManager.RunePages.cs new file mode 100644 index 0000000..d3b54d2 --- /dev/null +++ b/src/EntityFramework_LoL/Sources/DbManager/DbManager.RunePages.cs @@ -0,0 +1,80 @@ +using Model; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DbManager +{ + public partial class DbManager + { + public class RunePagesManager : IRunePagesManager + { + private readonly DbManager parent; + + public RunePagesManager(DbManager parent) + => this.parent = parent; + + public Task AddItem(RunePage? item) + { + throw new NotImplementedException(); + } + + public Task DeleteItem(RunePage? item) + { + throw new NotImplementedException(); + } + + public Task> GetItemByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task> GetItemsByChampion(Champion? champion, int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task> GetItemsByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task> GetItemsByRune(Model.Rune? rune, int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task GetNbItems() + { + throw new NotImplementedException(); + } + + public Task GetNbItemsByChampion(Champion? champion) + { + throw new NotImplementedException(); + } + + public Task GetNbItemsByName(string substring) + { + throw new NotImplementedException(); + } + + public Task GetNbItemsByRune(Model.Rune? rune) + { + throw new NotImplementedException(); + } + + public Task UpdateItem(RunePage? oldItem, RunePage? newItem) + { + throw new NotImplementedException(); + } + } + } +} diff --git a/src/EntityFramework_LoL/Sources/DbManager/DbManager.Runes.cs b/src/EntityFramework_LoL/Sources/DbManager/DbManager.Runes.cs new file mode 100644 index 0000000..ec2abfa --- /dev/null +++ b/src/EntityFramework_LoL/Sources/DbManager/DbManager.Runes.cs @@ -0,0 +1,70 @@ +using Model; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DbManager +{ + public partial class DbManager + { + public class RunesManager : IRunesManager + { + private readonly DbManager parent; + public RunesManager(DbManager parent) + => this.parent = parent; + + public Task AddItem(Model.Rune? item) + { + throw new NotImplementedException(); + } + + public Task DeleteItem(Model.Rune? item) + { + throw new NotImplementedException(); + } + + public Task> GetItemByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task> GetItemsByFamily(RuneFamily family, int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task> GetItemsByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task GetNbItems() + { + throw new NotImplementedException(); + } + + public Task GetNbItemsByFamily(RuneFamily family) + { + throw new NotImplementedException(); + } + + public Task GetNbItemsByName(string substring) + { + throw new NotImplementedException(); + } + + public Task UpdateItem(Model.Rune? oldItem, Model.Rune? newItem) + { + throw new NotImplementedException(); + } + } + + } +} diff --git a/src/EntityFramework_LoL/Sources/DbManager/DbManager.Skins.cs b/src/EntityFramework_LoL/Sources/DbManager/DbManager.Skins.cs new file mode 100644 index 0000000..cb5ecc8 --- /dev/null +++ b/src/EntityFramework_LoL/Sources/DbManager/DbManager.Skins.cs @@ -0,0 +1,71 @@ +using Model; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace DbManager +{ + public partial class DbManager + { + public class SkinsManager : ISkinsManager + { + private readonly DbManager parent; + + public SkinsManager(DbManager parent) + => this.parent = parent; + + public Task AddItem(Skin? item) + { + throw new NotImplementedException(); + } + + public Task DeleteItem(Skin? item) + { + throw new NotImplementedException(); + } + + public Task> GetItemByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task> GetItems(int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task> GetItemsByChampion(Champion? champion, int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task> GetItemsByName(string substring, int index, int count, string? orderingPropertyName = null, bool descending = false) + { + throw new NotImplementedException(); + } + + public Task GetNbItems() + { + throw new NotImplementedException(); + } + + public Task GetNbItemsByChampion(Champion? champion) + { + throw new NotImplementedException(); + } + + public Task GetNbItemsByName(string substring) + { + throw new NotImplementedException(); + } + + public Task UpdateItem(Skin? oldItem, Skin? newItem) + { + throw new NotImplementedException(); + } + } + + } +} diff --git a/src/EntityFramework_LoL/Sources/DbManager/DbManager.cs b/src/EntityFramework_LoL/Sources/DbManager/DbManager.cs new file mode 100644 index 0000000..33fae54 --- /dev/null +++ b/src/EntityFramework_LoL/Sources/DbManager/DbManager.cs @@ -0,0 +1,27 @@ +using Model; +using MyFlib; + +namespace DbManager +{ + public partial class DbManager : IDataManager + { + protected LolDbContext DbContext { get; set; } + + public DbManager(LolDbContext dbContext) + { + DbContext = dbContext; + ChampionsMgr = new ChampionsManager(this); + SkinsMgr = new SkinsManager(this); + RunesMgr = new RunesManager(this); + RunePagesMgr = new RunePagesManager(this); + } + + public IChampionsManager ChampionsMgr { get; set; } + + public ISkinsManager SkinsMgr { get; set; } + + public IRunesManager RunesMgr { get; set; } + + public IRunePagesManager RunePagesMgr { get; set; } + } +} diff --git a/src/EntityFramework_LoL/Sources/DbManager/DbManager.csproj b/src/EntityFramework_LoL/Sources/DbManager/DbManager.csproj new file mode 100644 index 0000000..48db0d4 --- /dev/null +++ b/src/EntityFramework_LoL/Sources/DbManager/DbManager.csproj @@ -0,0 +1,15 @@ + + + + Exe + net6.0 + enable + enable + + + + + + + + diff --git a/src/EntityFramework_LoL/Sources/DbManager/Program.cs b/src/EntityFramework_LoL/Sources/DbManager/Program.cs new file mode 100644 index 0000000..3751555 --- /dev/null +++ b/src/EntityFramework_LoL/Sources/DbManager/Program.cs @@ -0,0 +1,2 @@ +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); diff --git a/src/EntityFramework_LoL/Sources/LeagueOfLegends.sln b/src/EntityFramework_LoL/Sources/LeagueOfLegends.sln index e57cb50..e0e137e 100644 --- a/src/EntityFramework_LoL/Sources/LeagueOfLegends.sln +++ b/src/EntityFramework_LoL/Sources/LeagueOfLegends.sln @@ -19,13 +19,15 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApiLol", "ApiLol\ApiLol.csp EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DTO", "DTO\DTO.csproj", "{3919E408-EB12-4422-989B-C6ED4816D465}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApiTests", "Tests\ApiTests\ApiTests.csproj", "{1779D8A4-2E12-47F3-BDA2-2E7F04B758EB}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApiTests", "Tests\ApiTests\ApiTests.csproj", "{1779D8A4-2E12-47F3-BDA2-2E7F04B758EB}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Client", "Client\Client.csproj", "{464DAB04-BE65-429D-9A39-3E1BB43C521A}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Client", "Client\Client.csproj", "{464DAB04-BE65-429D-9A39-3E1BB43C521A}" - Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MyFlib", "MyFlib\MyFlib.csproj", "{2142AB69-B483-4B0A-96DC-CFA87DEB11A5}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UT_EF", "Tests\UT_EF\UT_EF.csproj", "{F896C30B-A6FE-42B2-BAC8-08360BC48DC6}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UT_EF", "Tests\UT_EF\UT_EF.csproj", "{F896C30B-A6FE-42B2-BAC8-08360BC48DC6}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DbManager", "DbManager\DbManager.csproj", "{71DDCC06-D993-47B0-92E3-5DD6E295FB8B}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -73,6 +75,10 @@ Global {F896C30B-A6FE-42B2-BAC8-08360BC48DC6}.Debug|Any CPU.Build.0 = Debug|Any CPU {F896C30B-A6FE-42B2-BAC8-08360BC48DC6}.Release|Any CPU.ActiveCfg = Release|Any CPU {F896C30B-A6FE-42B2-BAC8-08360BC48DC6}.Release|Any CPU.Build.0 = Release|Any CPU + {71DDCC06-D993-47B0-92E3-5DD6E295FB8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {71DDCC06-D993-47B0-92E3-5DD6E295FB8B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {71DDCC06-D993-47B0-92E3-5DD6E295FB8B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {71DDCC06-D993-47B0-92E3-5DD6E295FB8B}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/EntityFramework_LoL/Sources/MyFlib/DataSeeder.cs b/src/EntityFramework_LoL/Sources/MyFlib/DataSeeder.cs index cabeb12..12b19ca 100644 --- a/src/EntityFramework_LoL/Sources/MyFlib/DataSeeder.cs +++ b/src/EntityFramework_LoL/Sources/MyFlib/DataSeeder.cs @@ -1,10 +1,4 @@ using MyFlib.Entities.enums; -using System; -using System.Collections.Generic; -using System.Diagnostics.Metrics; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace MyFlib { diff --git a/src/EntityFramework_LoL/Sources/MyFlib/Entities/ChampionEntity.cs b/src/EntityFramework_LoL/Sources/MyFlib/Entities/ChampionEntity.cs index 6b90745..cd06b57 100644 --- a/src/EntityFramework_LoL/Sources/MyFlib/Entities/ChampionEntity.cs +++ b/src/EntityFramework_LoL/Sources/MyFlib/Entities/ChampionEntity.cs @@ -1,11 +1,6 @@ using MyFlib.Entities; -using System; -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace MyFlib { diff --git a/src/EntityFramework_LoL/Sources/MyFlib/Entities/CharacteristicEntity.cs b/src/EntityFramework_LoL/Sources/MyFlib/Entities/CharacteristicEntity.cs index cba7944..dd50bb6 100644 --- a/src/EntityFramework_LoL/Sources/MyFlib/Entities/CharacteristicEntity.cs +++ b/src/EntityFramework_LoL/Sources/MyFlib/Entities/CharacteristicEntity.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations.Schema; +using System.ComponentModel.DataAnnotations.Schema; using System.ComponentModel.DataAnnotations; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace MyFlib.Entities { diff --git a/src/EntityFramework_LoL/Sources/MyFlib/Entities/DictionaryCategoryRune.cs b/src/EntityFramework_LoL/Sources/MyFlib/Entities/DictionaryCategoryRune.cs index b4b8778..df56137 100644 --- a/src/EntityFramework_LoL/Sources/MyFlib/Entities/DictionaryCategoryRune.cs +++ b/src/EntityFramework_LoL/Sources/MyFlib/Entities/DictionaryCategoryRune.cs @@ -1,11 +1,6 @@ using MyFlib.Entities; using MyFlib.Entities.enums; -using System; -using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace MyFlib { diff --git a/src/EntityFramework_LoL/Sources/MyFlib/Entities/LargeImageEntity.cs b/src/EntityFramework_LoL/Sources/MyFlib/Entities/LargeImageEntity.cs index b9b3815..9b36b57 100644 --- a/src/EntityFramework_LoL/Sources/MyFlib/Entities/LargeImageEntity.cs +++ b/src/EntityFramework_LoL/Sources/MyFlib/Entities/LargeImageEntity.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.ComponentModel.DataAnnotations; namespace MyFlib { diff --git a/src/EntityFramework_LoL/Sources/MyFlib/Entities/RuneEntity.cs b/src/EntityFramework_LoL/Sources/MyFlib/Entities/RuneEntity.cs index 9b280d3..5e4c249 100644 --- a/src/EntityFramework_LoL/Sources/MyFlib/Entities/RuneEntity.cs +++ b/src/EntityFramework_LoL/Sources/MyFlib/Entities/RuneEntity.cs @@ -1,11 +1,6 @@ using MyFlib.Entities.enums; -using System; -using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace MyFlib { diff --git a/src/EntityFramework_LoL/Sources/MyFlib/Entities/RunePageEntity.cs b/src/EntityFramework_LoL/Sources/MyFlib/Entities/RunePageEntity.cs index 66f3c7f..edf5c11 100644 --- a/src/EntityFramework_LoL/Sources/MyFlib/Entities/RunePageEntity.cs +++ b/src/EntityFramework_LoL/Sources/MyFlib/Entities/RunePageEntity.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using System.ComponentModel.DataAnnotations; namespace MyFlib.Entities { diff --git a/src/EntityFramework_LoL/Sources/MyFlib/Entities/SkillEntity.cs b/src/EntityFramework_LoL/Sources/MyFlib/Entities/SkillEntity.cs index b6349d5..2bed8f4 100644 --- a/src/EntityFramework_LoL/Sources/MyFlib/Entities/SkillEntity.cs +++ b/src/EntityFramework_LoL/Sources/MyFlib/Entities/SkillEntity.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace MyFlib { diff --git a/src/EntityFramework_LoL/Sources/MyFlib/Entities/SkinEntity.cs b/src/EntityFramework_LoL/Sources/MyFlib/Entities/SkinEntity.cs index a2b8518..c4e6270 100644 --- a/src/EntityFramework_LoL/Sources/MyFlib/Entities/SkinEntity.cs +++ b/src/EntityFramework_LoL/Sources/MyFlib/Entities/SkinEntity.cs @@ -1,10 +1,5 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace MyFlib { diff --git a/src/EntityFramework_LoL/Sources/MyFlib/Entities/enums/CategoryEntity.cs b/src/EntityFramework_LoL/Sources/MyFlib/Entities/enums/CategoryEntity.cs index 83863f7..c050236 100644 --- a/src/EntityFramework_LoL/Sources/MyFlib/Entities/enums/CategoryEntity.cs +++ b/src/EntityFramework_LoL/Sources/MyFlib/Entities/enums/CategoryEntity.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace MyFlib.Entities.enums +namespace MyFlib.Entities.enums { public enum CategoryEntity { diff --git a/src/EntityFramework_LoL/Sources/MyFlib/Entities/enums/ChampionClassEntity.cs b/src/EntityFramework_LoL/Sources/MyFlib/Entities/enums/ChampionClassEntity.cs index bec72f2..3b0a0bb 100644 --- a/src/EntityFramework_LoL/Sources/MyFlib/Entities/enums/ChampionClassEntity.cs +++ b/src/EntityFramework_LoL/Sources/MyFlib/Entities/enums/ChampionClassEntity.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace MyFlib +namespace MyFlib { public enum ChampionClassEntity { diff --git a/src/EntityFramework_LoL/Sources/MyFlib/Entities/enums/RuneFamilyEntity.cs b/src/EntityFramework_LoL/Sources/MyFlib/Entities/enums/RuneFamilyEntity.cs index 9667ba4..d6172c4 100644 --- a/src/EntityFramework_LoL/Sources/MyFlib/Entities/enums/RuneFamilyEntity.cs +++ b/src/EntityFramework_LoL/Sources/MyFlib/Entities/enums/RuneFamilyEntity.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace MyFlib.Entities.enums +namespace MyFlib.Entities.enums { public enum RuneFamilyEntity { diff --git a/src/EntityFramework_LoL/Sources/MyFlib/Entities/enums/SkillTypeEntity.cs b/src/EntityFramework_LoL/Sources/MyFlib/Entities/enums/SkillTypeEntity.cs index 73c36e5..9132dd4 100644 --- a/src/EntityFramework_LoL/Sources/MyFlib/Entities/enums/SkillTypeEntity.cs +++ b/src/EntityFramework_LoL/Sources/MyFlib/Entities/enums/SkillTypeEntity.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace MyFlib +namespace MyFlib { public enum SkillTypeEntity { diff --git a/src/EntityFramework_LoL/Sources/MyFlib/LolDbContext.cs b/src/EntityFramework_LoL/Sources/MyFlib/LolDbContext.cs index 2675f56..971d018 100644 --- a/src/EntityFramework_LoL/Sources/MyFlib/LolDbContext.cs +++ b/src/EntityFramework_LoL/Sources/MyFlib/LolDbContext.cs @@ -1,11 +1,6 @@ using Microsoft.EntityFrameworkCore; using MyFlib.Entities; using MyFlib.Entities.enums; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace MyFlib {