feat(Immortal) Disabling SQL

This commit is contained in:
2022-03-30 21:28:08 -04:00
parent 4d27140e36
commit 363d6835b8
21 changed files with 427 additions and 132 deletions
+13 -2
View File
@@ -1,7 +1,14 @@
using Contexts;
using IGP;
using Microsoft.AspNetCore.Components.Web;
#if NO_SQL
#else
using Contexts;
using Microsoft.EntityFrameworkCore;
#endif
using Services;
using Services.Immortal;
using Services.Website;
@@ -31,7 +38,11 @@ builder.Services.AddSingleton(new HttpClient {
});
builder.Services.AddDbContext<DatabaseContext>(options => { options.UseSqlite("Data Source=./Database.db"); });
#if NO_SQL
#else
//builder.Services.AddDbContext<DatabaseContext>(options => { options.UseSqlite("Data Source=./Database.db"); });
#endif
builder.Services.AddSingleton<IWebsiteService, WebsiteService>();
builder.Services.AddSingleton<IAgileService, AgileService>();