We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 190e6ce commit 5796ad9Copy full SHA for 5796ad9
LinkDotNet.Blog.Infrastructure/Persistence/Sql/Repository.cs
@@ -20,7 +20,7 @@ public Repository(BlogDbContext blogDbContext)
20
21
public async Task<TEntity> GetByIdAsync(string id)
22
{
23
- return await blogDbContext.Set<TEntity>().AsNoTracking().SingleOrDefaultAsync(b => b.Id == id);
+ return await blogDbContext.Set<TEntity>().SingleOrDefaultAsync(b => b.Id == id);
24
}
25
26
public async Task<IPagedList<TEntity>> GetAllAsync(
@@ -74,4 +74,4 @@ public async Task DeleteAsync(string id)
74
75
76
77
-}
+}
0 commit comments