26 lines
665 B
C#
26 lines
665 B
C#
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
|
|
}
|
|
}
|