MudBlazor und DB-Verbindung
This commit is contained in:
+12
@@ -1,10 +1,22 @@
|
||||
using ZahlenAnalyse.Web.Components;
|
||||
using MudBlazor.Services;
|
||||
using Raven.Client.Documents;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
// Add services to the container.
|
||||
builder.Services.AddRazorComponents()
|
||||
.AddInteractiveServerComponents();
|
||||
builder.Services.AddMudServices();
|
||||
|
||||
var store = new DocumentStore
|
||||
{
|
||||
Urls = new[] { "http://localhost:8080" },
|
||||
Database = "ZahlenAnalyse"
|
||||
};
|
||||
store.Initialize();
|
||||
builder.Services.AddSingleton<IDocumentStore>(store);
|
||||
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user