Merge remote-tracking branch 'origin/master'
commit
23dbf42a5c
@ -1,7 +1,20 @@
|
||||
@page "/"
|
||||
@using BuchhaltungBlazor.Services
|
||||
|
||||
<PageTitle>Index</PageTitle>
|
||||
|
||||
<h1>Hello, world!</h1>
|
||||
<h1>Hello, user.</h1>
|
||||
Welcome to my bookings app.
|
||||
<Paragraph>
|
||||
<Button Color="Color.Primary" Clicked="@OnEnsureCreated">Ensure Created Database</Button>
|
||||
<Button Color="Color.Secondary" Clicked="@OnMigrate">Migrate Database</Button>
|
||||
</Paragraph>
|
||||
|
||||
Welcome to your new app.
|
||||
@code {
|
||||
private static void OnEnsureCreated() => GenericController.DeleteAndCreateDb();
|
||||
|
||||
private static async Task OnMigrate() {
|
||||
await GenericController.Migrate();
|
||||
Console.WriteLine("Migration done.");
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue