Skip to content

Conversation

@AndriySvyryd
Copy link
Member

@AndriySvyryd AndriySvyryd commented Jul 29, 2025

Part of #35722

  • Move HasDefaultFullTextLanguage and related methods from entity type to model
  • Rename value parameter in IsFullTextIndex and SetIsFullTextIndex to fullTextIndex, consider making it non-nullable
  • Add bool vectorIndex to IsVectorIndex
  • Remove the class constraint on ToJson
  • Rename GenerateDefaultConstraintName to GetDefaultDefaultConstraintName
  • Rename ContainingType to ContainingEntryType and move it to IRuntimeTypeBase
  • Add ComplexCollectionTypePropertyBuilder
  • Remove IConventionTypeBaseBuilder.IndexerComplexProperty

cc @artl93

@AndriySvyryd AndriySvyryd requested a review from a team as a code owner July 29, 2025 00:12
Copy link
Member

@roji roji left a comment

Choose a reason for hiding this comment

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

LGTM, see some comments/thoughts but nothing blocking.

/// any release. You should only use it directly in your code with extreme caution and knowing that
/// doing so can result in application failures when updating to a new Entity Framework Core release.
/// </remarks>
IRuntimeTypeBase ContainingEntryType
Copy link
Member

Choose a reason for hiding this comment

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

A general question, less about this and more about ContainingEntityType (and possibly other similar things): should these be returning null rather than this for when there is no containing thing? For example, Type.BaseType returns null for a .NET hierarchy root (and I think so do we), so return this to mean "there's no container" is a bit odd...

Copy link
Member Author

Choose a reason for hiding this comment

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

Think of this more in terms of sets than inheritance. In our model everything that's tracked needs to be rooted on an entity type.

Copy link
Member

Choose a reason for hiding this comment

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

Sure, but still seems quite odd that an entity "contains" itself...

@AndriySvyryd AndriySvyryd enabled auto-merge (squash) July 29, 2025 17:41
@AndriySvyryd AndriySvyryd merged commit afe5b0e into main Jul 29, 2025
7 checks passed
@AndriySvyryd AndriySvyryd deleted the APIReview branch July 29, 2025 18:28
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.

3 participants