Skip to content

Commit

Permalink
Update explicit throw for navigation ignored warning (#24486)
Browse files Browse the repository at this point in the history
Cleanup from earlier PR
  • Loading branch information
smitpatel authored Mar 24, 2021
1 parent 4722fe3 commit 12d4057
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/EFCore/Infrastructure/CoreOptionsExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ private WarningsConfiguration _warningsConfiguration
.TryWithExplicit(CoreEventId.ManyServiceProvidersCreatedWarning, WarningBehavior.Throw)
.TryWithExplicit(CoreEventId.LazyLoadOnDisposedContextWarning, WarningBehavior.Throw)
.TryWithExplicit(CoreEventId.DetachedLazyLoadingWarning, WarningBehavior.Throw)
.TryWithExplicit(CoreEventId.InvalidIncludePathError, WarningBehavior.Throw);
.TryWithExplicit(CoreEventId.InvalidIncludePathError, WarningBehavior.Throw)
.TryWithExplicit(CoreEventId.NavigationBaseIncludeIgnored, WarningBehavior.Throw);

/// <summary>
/// Creates a new set of options with everything set to default values.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9422,7 +9422,6 @@ protected override DbContextOptionsBuilder AddOptions(DbContextOptionsBuilder bu
{
w.Log(SqlServerEventId.ByteIdentityColumnWarning);
w.Log(SqlServerEventId.DecimalTypeKeyWarning);
w.Throw(CoreEventId.NavigationBaseIncludeIgnored);
});

protected override TestStore CreateTestStore()
Expand Down

0 comments on commit 12d4057

Please sign in to comment.