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

#5783 - Casting with as causing exceptions #19269

Merged
merged 1 commit into from
Dec 14, 2019

Conversation

svengeance
Copy link
Contributor

Minor code change to fix translation of x.Foo as Bar.

There were 2 different exceptions here - either KeyNotFound when the as was inside an aggregate like Sum, or a ClientEvaluation when the as as inside a a Where clause. With tests covering both of these, the 3'rd test covers the exact repro that was reported in issue #5783

@smitpatel smitpatel requested a review from maumar December 11, 2019 19:31
@smitpatel smitpatel self-assigned this Dec 11, 2019
@smitpatel
Copy link
Contributor

Need to convert tests to AssertQuery syntax before merge.

{
using var context = CreateContext();

var query = context.LevelOne.Include(l1 => l1.OneToMany_Optional1)
Copy link
Contributor

Choose a reason for hiding this comment

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

Include is not required here.

@smitpatel smitpatel merged commit d75b9d9 into dotnet:master Dec 14, 2019
@smitpatel
Copy link
Contributor

@svengeance - Thank you for contribution.

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.

2 participants