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

Allow specifying different index facets per table in TPT, TPC or entity splitting #27973

Open
Tracked by #22953
AndriySvyryd opened this issue May 7, 2022 · 2 comments

Comments

@AndriySvyryd
Copy link
Member

AndriySvyryd commented May 7, 2022

Split off from #19811

modelBuilder.Entity<Customer>().ToTable("Customer");
modelBuilder.Entity<SpecialCustomer>().ToTable("SpecialCustomer", tb =>
{
    tb.HasIndex(c => c.Id).HasDatabaseName("IX_Customer");
});

Alternative API:

modelBuilder.Entity<Customer>().HasIndex(c => c.Id)
    .ToTable("CustomerDetails", tb => tb.HasDatabaseName("IX_Customer"));
@amyboose
Copy link

Is it possible to reconsider the possibility of implementing this feature for EF Core 8 together with #27972 and #27971?

It helps to get rid of some bugs using EFCore.NamingConventions. For example, look at efcore/EFCore.NamingConventions#185

@ErikEJ
Copy link
Contributor

ErikEJ commented Jul 29, 2023

@amyboose The EF Core 8 train has left the platform

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

3 participants