Skip to content

Commit

Permalink
Add quirk mode for #23289
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriySvyryd committed Nov 17, 2020
1 parent 8e0caf0 commit 593d967
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/EFCore/Infrastructure/ModelValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,13 @@ protected virtual void ValidateNoCycles(
{
Check.NotNull(model, nameof(model));

var useOldBehavior = AppContext.TryGetSwitch("Microsoft.EntityFrameworkCore.Issue23289", out var isEnabled)
&& isEnabled;
if (useOldBehavior)
{
return;
}

var graph = new Multigraph<IEntityType, IForeignKey>();
foreach (var entityType in model.GetEntityTypes())
{
Expand Down

0 comments on commit 593d967

Please sign in to comment.