Skip to content

Allow specifying different column facets per table in TPT, TPC or entity splitting #27970

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
Tracked by #22953
AndriySvyryd opened this issue May 7, 2022 · 3 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.Property(c => c.Id)
        .HasDefaultValue("1")
        .HasDefaultConstrainName("blah")
        .HasDefaultValueSql("newid()")
        .HasComputedColumnSql("1")
        .HasConversion<string>()
        .HasColumnType("nvarchar(100)")
        .IsRequired(false)
        .HasMaxLength(100)
        .IsUnicode(false)
        .HasPrecision(1, 2)
        .HasCollation("Latin1_General_BIN2");
});
@maximcus
Copy link

@AndriySvyryd @ajcvickers I'm interested in #24685. Is this planned for EF Core 8 release by any chance?

@AndriySvyryd
Copy link
Member Author

AndriySvyryd commented Jul 25, 2023

@maximcus No. Vote (👍) for both issues so we consider them for future releases

@maumar
Copy link
Contributor

maumar commented May 7, 2025

This is also a problem for explicit constraint names (e.g. key constraint, default constraint)

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants