Continuo fix manuale interfacce e commenti
This commit is contained in:
@@ -14,6 +14,7 @@ namespace EgwCoreLib.Lux.Data.Repository.Sales
|
||||
|
||||
#region Public Methods
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<bool> AddAsync(OrderRowModel entity)
|
||||
{
|
||||
await using var dbCtx = await CreateContextAsync();
|
||||
@@ -21,6 +22,7 @@ namespace EgwCoreLib.Lux.Data.Repository.Sales
|
||||
return await dbCtx.SaveChangesAsync() > 0;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<bool> DeleteAsync(OrderRowModel entity)
|
||||
{
|
||||
await using var dbCtx = await CreateContextAsync();
|
||||
@@ -65,6 +67,7 @@ namespace EgwCoreLib.Lux.Data.Repository.Sales
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<List<ItemModel>> GetBomItemsAsync()
|
||||
{
|
||||
await using var dbCtx = await CreateContextAsync();
|
||||
@@ -73,6 +76,7 @@ namespace EgwCoreLib.Lux.Data.Repository.Sales
|
||||
.ToListAsync();
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<OrderRowModel?> GetByIdAsync(int OrderRowId)
|
||||
{
|
||||
await using var dbCtx = await CreateContextAsync();
|
||||
@@ -81,6 +85,7 @@ namespace EgwCoreLib.Lux.Data.Repository.Sales
|
||||
.FirstOrDefaultAsync(x => x.OrderRowID == OrderRowId);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<List<OrderRowModel>> GetByParentAsync(int orderId)
|
||||
{
|
||||
await using var dbCtx = await CreateContextAsync();
|
||||
@@ -91,6 +96,7 @@ namespace EgwCoreLib.Lux.Data.Repository.Sales
|
||||
.ToListAsync();
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<List<OrderRowModel>> GetByStateAsync(OrderStates reqState, DateTime dtStart, DateTime dtEnd)
|
||||
{
|
||||
await using var dbCtx = await CreateContextAsync();
|
||||
@@ -101,6 +107,7 @@ namespace EgwCoreLib.Lux.Data.Repository.Sales
|
||||
.ToListAsync();
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<List<OrderRowModel>> GetByStateMinAsync(OrderStates reqState, DateTime dtStart, DateTime dtEnd)
|
||||
{
|
||||
await using var dbCtx = await CreateContextAsync();
|
||||
@@ -111,6 +118,7 @@ namespace EgwCoreLib.Lux.Data.Repository.Sales
|
||||
.ToListAsync();
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<OrderRowModel?> GetByUidAsync(string OrderRowUid)
|
||||
{
|
||||
await using var dbCtx = await CreateContextAsync();
|
||||
@@ -119,12 +127,14 @@ namespace EgwCoreLib.Lux.Data.Repository.Sales
|
||||
.FirstOrDefaultAsync(x => x.OrderRowUID == OrderRowUid);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<List<ItemGroupModel>> GetItemGroupsAsync()
|
||||
{
|
||||
await using var dbCtx = await CreateContextAsync();
|
||||
return await dbCtx.DbSetItemGroup.ToListAsync();
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<bool> SaveRowsAsync(List<OrderRowModel> rows)
|
||||
{
|
||||
await using var dbCtx = await CreateContextAsync();
|
||||
@@ -150,6 +160,7 @@ namespace EgwCoreLib.Lux.Data.Repository.Sales
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<bool> UpdateAsync(OrderRowModel entity)
|
||||
{
|
||||
await using var dbCtx = await CreateContextAsync();
|
||||
@@ -339,6 +350,7 @@ namespace EgwCoreLib.Lux.Data.Repository.Sales
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public async Task<int> ValidateAsync(List<OrderRowModel> list2chk)
|
||||
{
|
||||
int numDone = 0;
|
||||
|
||||
Reference in New Issue
Block a user