Skip to content

SetIndex method is not functional for reordering attributes #171

Open
@veyselerCS

Description

@veyselerCS

using SetIndex(int index) method on entity attributes does not result to a correctly reordered set of attributes in EF view.
Reordering is done right after the ProcessEntityType method call in DbContextMetaDataLoader but CustomizeModel is called in later stages as far as i understand.

Example usage :

options.UseDbContext<FooContext>(opts => 
{
    opts.CustomizeModel(model =>
    {
        model.Entity<BarEntity>().Attribute(b => b.BazAttribute).SetIndex(<index_to_set);
        //...
    });
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions