🔥 rm SQLiteContext and replace by LolContext

pull/2/head
Maxence LANONE 2 years ago
parent 4e0e6637e7
commit 937716840a

@ -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");
}
}
}

Loading…
Cancel
Save