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

Enabling TPT with default table name. #27702

Closed
Abdragiz opened this issue Mar 25, 2022 · 2 comments
Closed

Enabling TPT with default table name. #27702

Abdragiz opened this issue Mar 25, 2022 · 2 comments

Comments

@Abdragiz
Copy link

Ask a question

Is it possible to enable TPT without providing table name in .ToTable() method, so that default table name (name of DbSet property) is used?

Include provider and version information

EF Core version: Microsoft.EntityFrameworkCore.Relational 6.0

@ajcvickers
Copy link
Member

@Abdragiz Not currently; this is covered by #27642.

@ajcvickers
Copy link
Member

@Abdragiz It's also worth pointing out that in EF Core 7.0 it will be possible to specify this once-per-hierarchy instead of calling ToTable on every table.

@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
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

2 participants