Data Browser - Viewing Site  Sector 23 Code Bank Logged in as:  Guest  


Entity Framework - Invalid Column Name 'Discriminator'
It turns out if you have an entity class mapped to entity framework, and you add another class to your project that inherits from that class, it may break Entity Framework.
You will get an error: Invalid Column Name 'Discriminator'
Instead, you need to mark the child class as NotMapped so that EF doesn't try to include it in the map:

public class EFTableObject{}

public class EFTableChildObject : EFTableObject{}

Created By: amos 2/17/2017 12:16:50 PM