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

Anxious for table-per-hierarchy #1476

Closed
heathyates opened this issue Jan 26, 2015 · 2 comments
Closed

Anxious for table-per-hierarchy #1476

heathyates opened this issue Jan 26, 2015 · 2 comments
Assignees
Milestone

Comments

@heathyates
Copy link

I have seen many users point out that EF does not have support for inheritance. In fact, I have learned this is already well known and being work on by the team, as seen here: #247

I have two questions:

  1. When might it be ready for test and evaluation? Especially tph(table per hierarchy)? We would really like to help evaluate and test this when you are ready. I also realize you may be tempted to answer it like this: http://imdb.to/1H0Ujd8 :)
  2. In the meantime, is there anyway we could currently try to mimic tph (database first perhaps)? It seems the current behavior is tpt (table per type)?
@rowanmiller
Copy link
Contributor

Hey,

  1. Love the quote 😄... I can be a little more specific. We view inheritance mapping as a 'must have O/RM feature' and we expect to have all those implemented toward the end of the year [insert usual disclaimer that things can change, this is just what we think, etc.].
  2. There isn't really a way to mimic it at the moment. If you use inheritance then the types are treated as two completely different types (as if they didn't inherit). We also don't make any guarantees that stuff won't just break since we haven't implemented inheritance at all yet... that just happens to be what occurs with the current logic.

~Rowan

@rowanmiller rowanmiller self-assigned this Jan 30, 2015
@rowanmiller rowanmiller added this to the Discussions milestone Jan 30, 2015
@heathyates
Copy link
Author

Thanks. Your reply will help us and I feel many others who had this question and propel a lot of folks projects further. If anyone has come across this, I would suggest they design a concrete schema as carefully as possible with an eye towards extending those concrete tables as base classes when the time for tph comes.

@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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants