Skip to content

API review updates: - #34403

Merged
ajcvickers merged 1 commit into
mainfrom
ApeGo
Aug 12, 2024
Merged

ajcvickers merged 1 commit into
mainfrom
ApeGo

Conversation

@ajcvickers

@ajcvickers ajcvickers commented Aug 11, 2024 •

Copy link
Copy Markdown
Contributor
  • 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
Copy Markdown
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
@ajcvickers
ajcvickers deleted the ApeGo branch August 12, 2024 08:05
@ajcvickers

Copy link
Copy Markdown
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