merge
parent
2c6dadd023
commit
0c34fe55ab
@ -1,7 +1,20 @@
|
|||||||
@page "/"
|
@page "/"
|
||||||
|
@using BuchhaltungBlazor.Services
|
||||||
|
|
||||||
<PageTitle>Index</PageTitle>
|
<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