20 lines
502 B
C#
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();
|
|
}
|
|
}
|