Can I access the discriminator value in TPH mapping with Entity Framework 4 CTP5
Using Entity Framework 4 CTP5 Code First and this example Is it possible to access the discriminator value? I would like to use it in a projection like context.BillingDetails.Select(x => new { Number = x.Number, DiscrimitatorValue = /* how do I get the discriminator value? */ }); From this post I understand the discriminator cannot be mapped to a property but is there any other way of accessing it? I may be late to the game on this one, but I just added a getter property to the base class that returned the name of the current type: public string DiscriminatorValue { get { return this.GetType()