The Discriminator column is used and required in Scripting Table on Per-Hierarchy inheritance. If for example you have such a model ...
public abstract class BaseEntity { public int Id { get; set; }
... and make BaseEntity part of the model, for example, by adding DbSet<BaseEntity> to your derived context, the Entity Framework will by default display this class hierarchy in one table, but present a special column - Discriminator - to distinguish between different types ( Post or OtherEntity ), stored in this table. This column is populated with the type name (again Post or OtherEntity ).
Slauma Sep 12 '11 at 9:16 a.m. 2011-09-12 21:16
source share