forked from ddrilling/AsbCloudServer
Фикс метода удаления плановых РТК
This commit is contained in:
parent
d522ad3e59
commit
7a64056b49
@ -60,14 +60,13 @@ namespace AsbCloudInfrastructure.Repository
|
|||||||
return dtos;
|
return dtos;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<int> RemoveRangeAsync(int idWell, CancellationToken cancellationToken)
|
public Task<int> RemoveRangeAsync(int idWell, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
var entitites = await dbContext.ProcessMap.Where(x => x.IdWell == idWell)
|
var entitites = dbContext.ProcessMap.Where(x => x.IdWell == idWell);
|
||||||
.ToListAsync(cancellationToken);
|
|
||||||
|
|
||||||
dbContext.ProcessMap.RemoveRange(entitites);
|
dbContext.ProcessMap.RemoveRange(entitites);
|
||||||
|
|
||||||
return await dbContext.SaveChangesAsync(cancellationToken);
|
return dbContext.SaveChangesAsync(cancellationToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override async Task<int> InsertAsync(ProcessMapPlanDto dto,
|
public override async Task<int> InsertAsync(ProcessMapPlanDto dto,
|
||||||
|
Loading…
Reference in New Issue
Block a user