965 votes19 comments · [Closed] Entity Framework Core Feature Suggestions · Flag idea as inappropriate… · Admin →
486 votes15 comments · [Closed] Entity Framework Core Feature Suggestions · Flag idea as inappropriate… · Admin →
Reopening since this was originally completed for EF6 but the feature is not available to Entity Framework Core.Jim Wolff commented
I forgot to add, it is easily possible via code first migrations, but having the attribute or the fluent api would make auto generation of the index possible when making the migration.Jim Wolff commented
There are several suggestions on this in a question i posted on stackoverflow on the subject:
I think EF needs to have both an index attribute and a way to configure it via EntityTypeConfigurations and the fluent api.