AsNoTracking for images

This commit is contained in:
Hamid Reza Mohammadi 2021-05-13 10:50:00 +04:30
parent 39027ac835
commit f8048a533d

View File

@ -156,7 +156,7 @@ namespace RSecurityBackend.Services.Implementation
try
{
return new RServiceResult<RImage>(
await _context.GeneralImages
await _context.GeneralImages.AsNoTracking()
.Where(p => p.Id == id)
.SingleOrDefaultAsync()
);