private void AddToCollection(InternalEntityEntry entry, INavigation navigation, InternalEntityEntry value, bool fromQuery) { if (navigation != null) { _changeDetector.Suspend(); try { if (entry.AddToCollection(navigation, value, fromQuery)) { entry.AddToCollectionSnapshot(navigation, value.Entity); } } finally { _changeDetector.Resume(); } } }