locked
Entity Framework TPT RRS feed

  • Question

  • User245250846 posted

    I am receiving and error 3014 "Problem in mapping fragments starting at lines 2206, 2213:The foreign key 'Foreign key constraint" when I do a second level of inheritance.  I am using database first approach.  Here is the scenario:
    Base class: Person (Id, name,...)

    class: Employee (Id, title, login, pw,....) - inherits from Person
    class: Therapist (Id, License, rate,.....) - inherits from Employee

    I remove the associations, remove Id from Employee and Therapist, check the table mappings, validate and get the error.  I have several TPT's defined but this is the only one with errors and is also the only one that has a second level of "is a"

    Please help point out the error in my approach and how to correct it.
     

    Monday, April 22, 2013 10:46 AM

Answers

All replies