Skip to content

Commit 5796ad9

Browse files
authored
Enable Tracking
1 parent 190e6ce commit 5796ad9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

LinkDotNet.Blog.Infrastructure/Persistence/Sql/Repository.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public Repository(BlogDbContext blogDbContext)
2020

2121
public async Task<TEntity> GetByIdAsync(string id)
2222
{
23-
return await blogDbContext.Set<TEntity>().AsNoTracking().SingleOrDefaultAsync(b => b.Id == id);
23+
return await blogDbContext.Set<TEntity>().SingleOrDefaultAsync(b => b.Id == id);
2424
}
2525

2626
public async Task<IPagedList<TEntity>> GetAllAsync(
@@ -74,4 +74,4 @@ public async Task DeleteAsync(string id)
7474
}
7575
}
7676
}
77-
}
77+
}

0 commit comments

Comments
 (0)