dotnet / efcore

EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
https://docs.microsoft.com/ef/
MIT License
13.64k stars 3.15k forks source link

HasIndex method of OwnedNavigationBuilder is missing overload that accepts index name #30718

Open prcdpr opened 1 year ago

prcdpr commented 1 year ago

I'm configuring owned entity via fluent API.

I tried to configure index with a custom name on one of owned entity properties .

image

However, when configuring index on a parent entity builder, an overload exists:

image

I'm looking for a solution to the same problem as in here: https://github.com/npgsql/efcore.pg/issues/2522 I'm trying to set up multiple indices on same property (both BTREE and GIN index on same text column).

Provider and version information

EF Core version: 6.0.12 Database provider: Npgsql.EntityFrameworkCore.PostgreSQL 6.0.8 Target framework: .NET 6.0

ajcvickers commented 1 year ago

Note for triage: still missing on latest daily build.

AndriySvyryd commented 11 months ago

Note to implementor: test migration snapshot.