28 lines
770 B
C#
28 lines
770 B
C#
using EgwCoreLib.Lux.Data.DbModel.Config;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace EgwCoreLib.Lux.Data.Repository.Config
|
|
{
|
|
public class EnvirParamRepository : BaseRepository, IEnvirParamRepository
|
|
{
|
|
#region Public Constructors
|
|
|
|
public EnvirParamRepository(IDbContextFactory<DataLayerContext> ctxFactory) : base(ctxFactory)
|
|
{
|
|
}
|
|
|
|
#endregion Public Constructors
|
|
|
|
#region Public Methods
|
|
|
|
public async Task<List<EnvirParamModel>> GetAllAsync()
|
|
{
|
|
await using var dbCtx = await CreateContextAsync();
|
|
return await dbCtx.DbSetEnvirPar
|
|
.AsNoTracking()
|
|
.ToListAsync();
|
|
}
|
|
|
|
#endregion Public Methods
|
|
}
|
|
} |