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: Convert List.Count to Queryable.Count() only for queryables #19831

Merged
merged 1 commit into from
Feb 7, 2020

Conversation

smitpatel
Copy link
Member

For collection scalar property preserve Count member as is.

Resolves #19715

@roji - Can you verify with this fix it correctly translates in npgsql?

Copy link
Member

@roji roji left a comment

Choose a reason for hiding this comment

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

Confirmed that this unblocks the Npgsql scenario, thanks!

@@ -576,6 +576,17 @@ public virtual void Collection_property_as_scalar_Any()
.Message.Replace("\r", "").Replace("\n", ""));
}

[ConditionalFact]
public virtual void Collection_property_as_scalar_Count_member()
Copy link
Member

Choose a reason for hiding this comment

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

Consider adding a comment on the Npgsql case on this test for context?

Copy link
Member Author

Choose a reason for hiding this comment

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

Inconsistency!

For collection scalar property preserve Count member as is.

Resolves #19715
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.

Regression: can no longer translate List.Count when mapped to PostgreSQL array
2 participants