-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix to #20609 - Includes() with string throws not finding navigation path exception when type T is derived #20630
Conversation
e275d5c
to
92bc7de
Compare
|
||
private BugContext20609 CreateContext20609() | ||
{ | ||
var testStore = SqlServerTestStore.CreateInitialized("QueryBugsTest", multipleActiveResultSets: true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this the right way to do custom warnings config in qbt? @AndriySvyryd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, but it's fine for now. Tracked by #17588
@@ -196,6 +197,20 @@ private enum Id | |||
public static readonly EventId PossibleUnintendedReferenceComparisonWarning | |||
= MakeQueryId(Id.PossibleUnintendedReferenceComparisonWarning); | |||
|
|||
/// <summary> | |||
/// <para> | |||
/// Invalid include path '{navigationChain}', couldn't find navigation for '{navigationName}'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"couldn't" -> "could not"?
…path exception when type T is derived Fix is to use logging infrastructure for the "invalid include path" error. Log event is configured to throw by default but can be overriden in the dbcontextoptions. Event id is CoreEventId.InvalidIncludePathError
Unless I am missing something why the file CoreStrings.Designer.cs has changed but there are no changes in CoreStrings.resx file in this PR? |
@smitpatel I missed that. @maumar You probably made the changes manually, which is fine, but can we get the resx file updated to match? |
Fix is to use logging infrastructure for the "invalid include path" error. Log event is configured to throw by default but can be overriden in the dbcontextoptions. Event id is CoreEventId.InvalidIncludePathError
Resolves #20609