namespace Lux.Report.Data.Repository { public abstract class BaseRepRepository : IBaseRepRepository { #region Protected Fields protected readonly IDbContextFactory _ctxFactory; #endregion Protected Fields #region Protected Constructors protected BaseRepRepository(IDbContextFactory ctxFactory) => _ctxFactory = ctxFactory; #endregion Protected Constructors #region Protected Methods /// /// Creazione dbcontext per singola transazione /// /// protected async Task CreateContextAsync() => await _ctxFactory.CreateDbContextAsync(); #endregion Protected Methods } }