From 937716840a30c2c64ecd14f2761f5636abc995c9 Mon Sep 17 00:00:00 2001 From: Maxence Lanone Date: Wed, 8 Mar 2023 13:04:08 +0100 Subject: [PATCH] :fire: rm SQLiteContext and replace by LolContext --- Sources/Tests/ConsoleDB/Program.cs | 13 +------------ Sources/Tests/ConsoleDB/projet.Champions.db | 0 2 files changed, 1 insertion(+), 12 deletions(-) create mode 100644 Sources/Tests/ConsoleDB/projet.Champions.db diff --git a/Sources/Tests/ConsoleDB/Program.cs b/Sources/Tests/ConsoleDB/Program.cs index c0088e2..c9fdc38 100644 --- a/Sources/Tests/ConsoleDB/Program.cs +++ b/Sources/Tests/ConsoleDB/Program.cs @@ -21,7 +21,7 @@ ChampionEntity champions = new ChampionEntity Icon = "icon", Bio = "test bio champion" }; -using (var context= new SQLiteLolContext()) +using (var context= new LolContext()) { Console.WriteLine("Create and Insert new Champion"); context.Add(champions); @@ -30,14 +30,3 @@ using (var context= new SQLiteLolContext()) await context.SaveChangesAsync(); } -public class SQLiteLolContext : LolContext -{ - protected override void OnConfiguring(DbContextOptionsBuilder options) - { - if (!options.IsConfigured) - { - options.UseSqlite($"Data Source=projet.Champions.db"); - } - } -} - diff --git a/Sources/Tests/ConsoleDB/projet.Champions.db b/Sources/Tests/ConsoleDB/projet.Champions.db new file mode 100644 index 0000000..e69de29