Files
lux/EgwCoreLib.Lux.Data/Repository/Sales/CustomerRepository.cs
T
Samuele Locatelli fc66013385 fix correzioni region
2026-03-25 17:25:58 +01:00

26 lines
710 B
C#

namespace EgwCoreLib.Lux.Data.Repository.Sales
{
public class CustomerRepository : BaseRepository, ICustomerRepository
{
#region Public Constructors
public CustomerRepository(IDbContextFactory<DataLayerContext> ctxFactory) : base(ctxFactory)
{
}
#endregion Public Constructors
#region Public Methods
/// <inheritdoc />
public async Task<List<CustomerModel>> GetAllAsync()
{
await using var dbCtx = await CreateContextAsync();
return await dbCtx.DbSetCustomer
.AsNoTracking()
.ToListAsync();
}
#endregion Public Methods
}
}