You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ArgumentException: Ein Element mit dem gleichen Schlüssel wurde bereits hinzugefügt.
bei System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
bei System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
bei Microsoft.EntityFrameworkCore.InMemory.Storage.Internal.InMemoryTable`1.Create(IUpdateEntry entry)
bei Microsoft.EntityFrameworkCore.InMemory.Storage.Internal.InMemoryStore.ExecuteTransaction(IReadOnlyList`1 entries, IDiagnosticsLogger`1 updateLogger)
bei Microsoft.EntityFrameworkCore.InMemory.Storage.Internal.InMemoryDatabase.SaveChanges(IReadOnlyList`1 entries)
bei Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IReadOnlyList`1 entriesToSave)
bei Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess)
bei Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess)
bei Microsoft.EntityFrameworkCore.DbContext.SaveChanges()
The text was updated successfully, but these errors were encountered:
@ajcvickers why is this a duplicate? The other issue is about resetting the key value generator and for my Szenario it has to consider existing rows. Can you please Post a workaound because it is not clear for me from the referenced issue
@JanEggers The fix for that issue also included taking into account existing IDs in the table. It was basically a complete overhaul of the strategy to make it behave more like the relational equivalents.
im using efcore in memory 2.2.3
and this is throwing argument exception when adding s3 (savechanges):
The text was updated successfully, but these errors were encountered: