Restrcutured the database, and updated pipeline to include cover art.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using MangaReader.Core.Data;
|
||||
using MangaReader.WinUI.ViewModels;
|
||||
using MangaReader.WinUI.Views;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.UI.Xaml;
|
||||
using System;
|
||||
@@ -19,7 +21,9 @@ public partial class App : Application
|
||||
|
||||
services.AddSingleton<MainWindow>();
|
||||
|
||||
services.AddSingleton<MainViewModel>();
|
||||
services.AddSingleton<SearchViewModel>();
|
||||
services.AddSingleton<LibraryViewModel>();
|
||||
|
||||
services.AddMangaReader();
|
||||
|
||||
@@ -29,6 +33,7 @@ public partial class App : Application
|
||||
using var scope = ServiceProvider.CreateScope();
|
||||
var dbContext = scope.ServiceProvider.GetRequiredService<MangaContext>();
|
||||
dbContext.Database.EnsureCreated();
|
||||
dbContext.Database.Migrate();
|
||||
}
|
||||
|
||||
public App()
|
||||
|
||||
Reference in New Issue
Block a user