Files
lux/EgwCoreLib.Lux.Data/Repository/Job/PhaseRepository.cs
T
2026-03-20 19:03:32 +01:00

29 lines
742 B
C#

using EgwCoreLib.Lux.Data.DbModel.Job;
using Microsoft.EntityFrameworkCore;
namespace EgwCoreLib.Lux.Data.Repository.Job
{
public class PhaseRepository : BaseRepository, IPhaseRepository
{
#region Public Constructors
public PhaseRepository(IDbContextFactory<DataLayerContext> ctxFactory) : base(ctxFactory)
{
}
#endregion Public Constructors
#region Public Methods
public async Task<List<PhaseModel>> GetAllAsync()
{
await using var dbCtx = await CreateContextAsync();
return await dbCtx.DbSetPhase
.AsNoTracking()
.ToListAsync();
}
#endregion Public Methods
}
}