Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

EFCore indexed column not generated and support for multi column indexing ? #62

Closed
@Tristan-gu

Description

@Tristan-gu

Hi,
Waiting for the 2019 relase (#61 ), I'm trying your extension in VS 2017 and your extension is very useful and nice.

But, I think there is a bug in EFCore model: if your set a non Identity column do "indexed", there is absolutely no "hasIndex" generated in the final context.
I don't understand because it's seems to be developed in this source. (line 305).

And, another question, when I saw the code below, I wonder how to generate a multi-column index in EFCore model ? Like this :
modelBuilder.Entity<Item>()HasIndex((Item b) => new { b.column1, b.column2, b.column3 });

Is it planned ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    clarificationFeature needs clarity to make it more user friendlyenhancementNew feature requestworkaround availableThere's a problem that needs fixed, but a procedure can currently be used to get the same result

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions