Отключил отслеживание при первом извлечении

This commit is contained in:
parent 252fba725b
commit c6f56040c0

View File

@ -34,6 +34,7 @@ public class ManualFolderRepository : CrudRepositoryBase<ManualFolderDto, Manual
CancellationToken cancellationToken) CancellationToken cancellationToken)
{ {
var entity = await dbContext.ManualFolders var entity = await dbContext.ManualFolders
.AsNoTracking()
.FirstOrDefaultAsync(m => m.Name == name && .FirstOrDefaultAsync(m => m.Name == name &&
m.IdCategory == idCategory && m.IdCategory == idCategory &&
m.IdParent == idParent, cancellationToken); m.IdParent == idParent, cancellationToken);