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

API review updates: #34403

Merged
merged 1 commit into from
Aug 12, 2024
Merged

API review updates: #34403

merged 1 commit into from
Aug 12, 2024

Conversation

ajcvickers
Copy link
Contributor

@ajcvickers ajcvickers commented Aug 11, 2024

  • Rename AlwaysCreateShadowIdProperty to HasShadowId and HasShadowIds (on the model builder)
  • Rename IncludeDiscriminatorInJsonId to HasDiscriminatorInJsonId and HasDiscriminatorInJsonIds. Same for the related methods
  • Rename DiscriminatorInKeyBehavior to IdDiscriminatorMode and move it to Microsoft.EntityFrameworkCore.Metadata
  • Rename DiscriminatorInKeyBehavior.(Root)EntityTypeName to (Root)EntityType
  • Move ETagPropertyConvention to Microsoft.EntityFrameworkCore.Metadata.Conventions
  • Consider merging CosmosKeyAugmenterConvention with CosmosKeyDiscoveryConvention, otherwise propose a better name for it.
    • Tried it. Got messy. Renamed to CosmosPartitionKeyInPrimaryKeyConvention. I'm sure it will be dicussed again.
  • Check why the obsolete methods on RelationalSqlTranslatingExpressionVisitor haven't been removed in the initial pass
    • Because it seems we didn't do the pass at the start of EF9

@ajcvickers ajcvickers requested a review from a team August 11, 2024 16:24
- Rename `AlwaysCreateShadowIdProperty` to `HasShadowId` and `HasShadowIds` (on the model builder)
- Rename `IncludeDiscriminatorInJsonId` to `HasDiscriminatorInJsonId` and `HasDiscriminatorInJsonIds`. Same for the related methods
- Rename `DiscriminatorInKeyBehavior` to `IdDiscriminatorMode` and move it to `Microsoft.EntityFrameworkCore.Metadata`
- Rename `DiscriminatorInKeyBehavior.(Root)EntityTypeName` to `(Root)EntityType`
- Move `ETagPropertyConvention` to `Microsoft.EntityFrameworkCore.Metadata.Conventions`
- Consider merging `CosmosKeyAugmenterConvention` with `CosmosKeyDiscoveryConvention`, otherwise propose a better name for it.
  - Tried it. Got messy. Renamed to `CosmosPartitionKeyInPrimaryKeyConvention`. I'm sure it will be dicussed again.
- Check why the obsolete methods on `RelationalSqlTranslatingExpressionVisitor` haven't been removed in the initial pass
 - Because it seems we didn't do the pass at the start of EF9
@AndriySvyryd
Copy link
Member

Because it seems we didn't do the pass at the start of EF9

Did you do a pass now to see if there are any other members that should be removed?

@ajcvickers ajcvickers merged commit b988989 into main Aug 12, 2024
7 checks passed
@ajcvickers ajcvickers deleted the ApeGo branch August 12, 2024 08:05
@ajcvickers
Copy link
Contributor Author

Did you do a pass now to see if there are any other members that should be removed?

Not yet. It may be too late for 9 anyway. Let's discuss in the meeting later.

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