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

Add end to end test for shared type entity type #21948

Merged
1 commit merged into from
Aug 6, 2020
Merged

Conversation

smitpatel
Copy link
Contributor

Resolves #19979

Also verify return type of DbSet with CLR type of EntityType

Resolves #21937

Resolves #19979

Also verify return type of DbSet with CLR type of EntityType

Resolves #21937
@smitpatel smitpatel requested a review from a team August 6, 2020 01:01
@ghost
Copy link

ghost commented Aug 6, 2020

Hello @smitpatel!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit b3bb4ca into main Aug 6, 2020
@ghost ghost deleted the smit/sharedtypetests branch August 6, 2020 01:58

entity["Payload"] = "AlreadyUpdated";

context.Set<Dictionary<string, object>>("JoinOneToThreePayloadFullShared").Update(entity);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ajcvickers - Why was this necessary to update the entity on database?

Copy link
Member

Choose a reason for hiding this comment

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

Did this fail for the changing tracking proxy test only? If so, it looks like it's because changing an indexer property is not sending a notification to the state manager. This is a bug. (Even if it turns out to be impossible, it should at least be a warning when using change tracking prioxies.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, only failed for changetracking proxies

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validate the DbSet constructed with EntityType found Test: Add tests for shared type entity types
4 participants