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

[SMALL] Fix to #18565 - Throw when a query filter is configured on an owned type #21129

Merged
merged 1 commit into from
Jun 5, 2020

Conversation

maumar
Copy link
Contributor

@maumar maumar commented Jun 3, 2020

Added model validation rule.

Fixes #18565

@maumar maumar requested a review from AndriySvyryd June 3, 2020 21:08
CoreStrings.BadFilterDerivedType(entityType.GetQueryFilter(), entityType.DisplayName()));
if (entityType.BaseType != null)
{
throw new InvalidOperationException(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

was thinking to combine, but the message looks a bit convoluted.

@maumar maumar changed the title Fix to #18565 - Throw when a query filter is configured on an owned type [SMALL] Fix to #18565 - Throw when a query filter is configured on an owned type Jun 3, 2020
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.

Throw when a query filter is configured on an owned type
3 participants