-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Raw SQL queries for unmapped types #29931
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If we are going this route, then I think it would make sense to use the same conventions used by the model building. We could run |
ajcvickers
force-pushed
the
WhatIfWeDidThis1224
branch
from
January 9, 2023 14:14
74bd92d
to
df94994
Compare
ajcvickers
changed the title
Proof of concept: ad-hoc entity types
Raw SQL queries for unmapped types
Jan 9, 2023
@dotnet/efteam This is now ready for review. |
…-merge-6.0-2023-01-10-1110
…-merge-7.0-2023-01-10-1114
…3-01-10-1114 Merging internal commits for release/7.0
…3-01-10-1110 Merging internal commits for release/6.0
src/EFCore/Metadata/Conventions/AdHocModelInitializedConvention.cs
Outdated
Show resolved
Hide resolved
Fixes #10753 Builds an ad-hoc entity type and uses it to query when `SqlQuery` is called for a type that does not have a type mapping. Things to consider: - The entity type cannot have relationships - Properties are mapped by convention and mapping attributes are respected. - The entity types are keyless.
ajcvickers
force-pushed
the
WhatIfWeDidThis1224
branch
from
January 11, 2023 13:06
df94994
to
3f2736a
Compare
@AndriySvyryd Updated. |
AndriySvyryd
approved these changes
Jan 11, 2023
Fixes #10753 Builds an ad-hoc entity type and uses it to query when `SqlQuery` is called for a type that does not have a type mapping. Things to consider: - The entity type cannot have relationships - Properties are mapped by convention and mapping attributes are respected. - The entity types are keyless.
…into WhatIfWeDidThis1224
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #10753
Builds an ad-hoc entity type and uses it to query when
SqlQuery
is called for a type that does not have a type mapping.Things to consider: