1

I'm new to Entity Framework, I need to implement the table per class inheritance strategy. This followed the steps explained in this tutorial

https://www.packtpub.com/books/content/entity-framework-db-first-%E2%80%93-inheritance-relationships-between-entities

But I get this error:

employee and vendor entity are not mapped

I found this article not well detailed. Can you give me more explanations?

Thanks to everyone

1 Answer 1

1

Something going wrong in the mapping of your DbContext, anyway here is a very good example and description. Just follow the tutorial step by step and good luck!

http://weblogs.asp.net/manavi/inheritance-mapping-strategies-with-entity-framework-code-first-ctp5-part-3-table-per-concrete-type-tpc-and-choosing-strategy-guidelines

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

2 Comments

i'm in db first approach
@fatiDev Sorry & here is DB-First link: blogs.microsoft.co.il/gilf/2010/01/25/…

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.