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

EntityTypeBuilder.HasIndex HasIndex improvement #4580

Closed
mrpmorris opened this issue Dec 4, 2023 · 1 comment
Closed

EntityTypeBuilder.HasIndex HasIndex improvement #4580

mrpmorris opened this issue Dec 4, 2023 · 1 comment

Comments

@mrpmorris
Copy link

I needed to have more than one index on a property, but adding the second index replaced the first. I was told how to achieve this, by using a 2nd name argument, but if you don't already know what it does then it is not clear what it is for.

Current text

Configures an index on the specified properties and with the given name. If there is an existing index on the given list of properties and with the given name, then the existing index will be returned for configuration. This feature allows for the

Recommended

Configures an index on the specified properties and with the given name. If there is an existing index on the given list of properties and with the given name, then the existing index will be returned for configuration. This allows the definition of multiple different indexes on the same property, that can be identified by name.

Is there a more complete documentation on this somewhere? I was unable to find any MS docs at all explaining how to create multiple indexes on a single property (I have different filters on them). The only doc I found was this one which talks about only allowing a single index -


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

@roji
Copy link
Member

roji commented Dec 4, 2023

Duplicate of #4582

@roji roji marked this as a duplicate of #4582 Dec 4, 2023
@roji roji closed this as not planned Won't fix, can't repro, duplicate, stale Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants