Aggiunti repository + servizi x reports in LUX UI

This commit is contained in:
Samuele Locatelli
2026-04-24 17:42:49 +02:00
parent a9acd2ca69
commit c865420e95
19 changed files with 328 additions and 14 deletions
@@ -0,0 +1,31 @@
namespace Lux.Report.Data.Repository
{
public abstract class BaseRepRepository : IBaseRepRepository
{
#region Protected Fields
protected readonly IDbContextFactory<ReportContext> _ctxFactory;
#endregion Protected Fields
#region Protected Constructors
protected BaseRepRepository(IDbContextFactory<ReportContext> ctxFactory)
=> _ctxFactory = ctxFactory;
#endregion Protected Constructors
#region Protected Methods
/// <summary>
/// Creazione dbcontext per singola transazione
/// </summary>
/// <returns></returns>
protected async Task<ReportContext> CreateContextAsync()
=> await _ctxFactory.CreateDbContextAsync();
#endregion Protected Methods
}
}