1

Can you generate a TPC inheritance structure through the entity framework designer? I have managed to get a TPC inheritance structure to work through Code First, but the database I'm connecting to has a good 20 relationship tables. I don't want to manage all of those relationships through code first.

If that is not possible, would it be possible to generate an .EDMX through code-first and then edit that through the designer?

2
  • Is this what you are looking for? blogs.microsoft.co.il/blogs/gilf/archive/2010/01/25/… Commented Jul 13, 2012 at 16:42
  • Yes! I was trying to avoid editing the xml directly, as it is likely that other developers will need to come in and figure out quickly what is going on. Buyt if you want to put this as an answer, I'll check-mark it. Commented Jul 13, 2012 at 20:29

1 Answer 1

5

Gil Fink has a blog on this:

http://blogs.microsoft.co.il/blogs/gilf/archive/2010/01/25/table-per-concrete-type-inheritance-in-entity-framework.aspx

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.