Skip to content

Commit

Permalink
Add quirk mode for #23274
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriySvyryd committed Nov 12, 2020
1 parent 560a5fb commit 3c2335c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,9 @@ public static string GetDefaultViewSchema([NotNull] this IEntityType entityType)
return ownership.PrincipalEntityType.GetViewSchema();
}

return GetViewName(entityType) != null ? entityType.Model.GetDefaultSchema() : null;
var useOldBehavior = AppContext.TryGetSwitch("Microsoft.EntityFrameworkCore.Issue23274", out var isEnabled)
&& isEnabled;
return !useOldBehavior && GetViewName(entityType) != null ? entityType.Model.GetDefaultSchema() : null;
}

/// <summary>
Expand Down

0 comments on commit 3c2335c

Please sign in to comment.