laatzen/LaaProductionWeb/LaaProductionWeb.Blazor/Components/Logging/Logging.razor.cs
2025-03-17 16:03:24 +01:00

20 lines
502 B
C#

namespace LaaProductionWeb.Blazor.Components.Logging
{
using LaaProductionWeb.Blazor.Components.Logging.Sqlite;
using Microsoft.AspNetCore.Components;
using System.Collections.Generic;
public partial class Logging : ComponentBase
{
private IEnumerable<SqliteLog> Logs { get; set; }
[Inject]
private SqliteLoggingDbContext Sqlite { get; set; }
protected override void OnInitialized()
=> this.Logs = this.Sqlite.GetLogs();
}
}