Skip to content

Commit 4d64182

Browse files
author
Bart Koelman
committed
Removed temporary workaround
1 parent 72549f1 commit 4d64182

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/JsonApiDotNetCore/Data/DefaultResourceRepository.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,6 @@ private void DetachRelationships(TResource entity)
187187
else
188188
{
189189
_context.Entry(value).State = EntityState.Detached;
190-
191-
// temporary work around for https://github.com/aspnet/EntityFrameworkCore/issues/18621
192-
// as soon as ef core 3.1 lands we can get rid of this again.
193-
_context.Entry(entity).State = EntityState.Detached;
194190
}
195191
}
196192
}

0 commit comments

Comments
 (0)