Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions Src/Core/F12/DataAccess/F12Repository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,14 @@ await _appContext

try
{
var rowsAffected = await _appContext
await _appContext
.Set<TodoTaskEntity>()
.Where(task => task.Id == taskId)
.ExecuteDeleteAsync(ct);

if (rowsAffected == 0)
{
throw new DbUpdateException();
}
await _appContext
.Set<TodoTaskStepEntity>()
.Where(taskStep => taskStep.TodoTaskId == taskId)
.ExecuteDeleteAsync(ct);

await dbTransaction.CommitAsync(ct);
}
Expand Down
Loading