Skip to content
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

Query: Materialize Required dependents always #22019

Merged
merged 1 commit into from
Aug 11, 2020
Merged

Conversation

smitpatel
Copy link
Member

  • Also remove additional conditions in SelectExpression

Resolves #21807
Resolves #12100

@@ -1034,6 +1034,14 @@ private static void PopulateRowInternalForeignKeys(TableBase table)
entityTypesToVisit.Enqueue(
(referencingForeignKey.DeclaringEntityType, optional || !referencingForeignKey.IsRequiredDependent));
}

if (mainMapping.IncludesDerivedTypes)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the mapping for the current entityType, as other types sharing the table might be using different strategies

- Also remove additional conditions in SelectExpression

Resolves #21807
Resolves #12100
@smitpatel smitpatel merged commit f69b5ac into main Aug 11, 2020
@smitpatel smitpatel deleted the smit/requireddependent branch August 11, 2020 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants