public Task Updateitemno(int parentID, bool isNew) { DNEthanRepositoryExtensions.updateitemno<Estimatecuttinglist, int>(_estimatecuttinglistRepository, parentID, isNew); return Task.CompletedTask; }
public static void updateitemno<TEntity, TPrimaryKey>(this IRepository<TEntity, TPrimaryKey> repository, int parentID , bool isNeworDelete) where TEntity : class, IEntity<TPrimaryKey>, IMayHaveItemno
{
if (!isNeworDelete)
return;
var item = from db in repository.GetAll()
where db.parentID == parentID
orderby db.itemno
select db;
int itemno = 1;
foreach (var row in item)
{
row.itemno = itemno;
repository.Update(row);
itemno++;
}
}
No errors found. it seems updateitemno method is affecting the delete command. it works when i remove updateitemno method.
try { var result = new PagedResultDto<GetProductProfileForViewDto>( totalCount, await productProfiles.ToListAsync() ); return result; } catch (Exception err) {
// error here .....
}
019-10-24 ASP.NET CORE & Angular .NET Core 2.2 v7.2.3
No , I only use paginator from prime ng after searching i found this solution
this.paginator.first = this.paginator.paginatorState.rows * (this.paginator.paginatorState.pageCount-1);
HI, this is my ANZ version / framework ASP.NET CORE & Angular (single solution) .NET Core 2.2 v7.2.3
my sample for order details is a shopping cart with many item that i want to empty or delete using if any single delete command, without looping each record for deletion
my solution is to change theme .
just found the solution .. just added these in tsconfig.json "include": [ "../src/**/*" ],