Skip to content

Commit

Permalink
Stops tracking all currently tracked entities.
Browse files Browse the repository at this point in the history
  • Loading branch information
SeriaWei committed Sep 21, 2024
1 parent 54a0d6e commit de81945
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/EasyFrameWork/RepositoryPattern/ServiceBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ private void SaveChanges()
if(!isInBulkSaving)
{
DbContext.SaveChanges();
DbContext.ChangeTracker.Clear();
}
}

Expand Down

0 comments on commit de81945

Please sign in to comment.