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

Introduce complete discriminator mapping #20193

Merged
merged 1 commit into from
Mar 6, 2020

Conversation

smitpatel
Copy link
Member

  • Add fluent API IsComplete over DiscriminatorBuilder
  • In query if mapping is complete
    • Don't generate predicate when creating Select for an entityType
    • Don't apply predicate when doing OfType of derived type when the discriminator is not needed

Current default: Mapping is incomplete unless user uses fluent API to mark it as complete.

Resolves #18106

@smitpatel smitpatel force-pushed the smit/completediscriminatormapping branch from 2afae06 to de737de Compare March 5, 2020 21:05
Copy link
Member

@AndriySvyryd AndriySvyryd left a comment

Choose a reason for hiding this comment

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

🔼

@smitpatel smitpatel force-pushed the smit/completediscriminatormapping branch from de737de to f8e5211 Compare March 5, 2020 23:07
@smitpatel
Copy link
Member Author

Updated.

- Add fluent API IsComplete over DiscriminatorBuilder
- In query if mapping is complete
  - Don't generate predicate when creating Select for an entityType
  - Don't apply predicate when doing OfType of derived type when the discriminator is not needed

Current default: Mapping is incomplete unless user uses fluent API to mark it as complete.

Resolves #18106
@smitpatel smitpatel force-pushed the smit/completediscriminatormapping branch from f8e5211 to 8139586 Compare March 6, 2020 00:01
@smitpatel smitpatel merged commit d3a2401 into master Mar 6, 2020
@smitpatel smitpatel deleted the smit/completediscriminatormapping branch March 6, 2020 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Complete Discriminator mapping
2 participants