From 0e77ee33b7791594aa4e855f3fb6ebca148bd4fc Mon Sep 17 00:00:00 2001 From: Andriy Svyryd Date: Fri, 19 Feb 2021 19:01:43 -0800 Subject: [PATCH] Remove incorrect short-circuit. --- src/EFCore/Internal/DbContextServices.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/EFCore/Internal/DbContextServices.cs b/src/EFCore/Internal/DbContextServices.cs index 0b617675653..f381679c6a1 100644 --- a/src/EFCore/Internal/DbContextServices.cs +++ b/src/EFCore/Internal/DbContextServices.cs @@ -77,12 +77,6 @@ private IModel CreateModel(IModel modelFromOptions) throw new InvalidOperationException(CoreStrings.RecursiveOnModelCreating); } - if (modelFromOptions != null - && modelFromOptions.ModelDependencies != null) - { - return modelFromOptions; - } - try { _inOnModelCreating = true;