0

I have a class inheritting from another class based on 2 discriminators.

I want to do something like:

Map<FineStatusTypePaidFull>(
  m => m.Requires("LookupKey")
        .HasValue("FineStatusType") && ("LookupCode")
        .HasValue("PIF");

But I have not found anything yet.... any suggestions?

Pawel
  • 31,342
  • 4
  • 73
  • 104
Chris
  • 1,690
  • 2
  • 17
  • 24
  • There is something wrong with this code - what is LookupCode? Can you add more description of what you are trying to achieve instead of a code snippet that is not really parsable and can lead to different interpretations of what you are trying to achieve? – Pawel Oct 04 '12 at 21:20
  • I have class FineStatusTypePaidFull that inherits from class Lookup. This inheritance should be based on the values of 2 fields in our LookupTable: LookupKey and LookupCode – Chris Oct 04 '12 at 21:23

1 Answers1

0

I found the answer in the following link. Appearantly the bug is not fixed yet in EF 5.0

Entity Framework 4.3 - TPH mapping and migration error

Community
  • 1
  • 1
Chris
  • 1,690
  • 2
  • 17
  • 24