Browse by Tags

All Tags » VS » Entity Framework (EF) (RSS)

How to have a property on ObjectContext which returns the derived entities? v2

With Danny advices, I improve my custom code generator to do this in only one generation. public class SampleEdmxCodeGenerator : BaseCodeGeneratorWithSite { private EntityContainer _objectContext; private Dictionary < string , string > _entitySetNames;...

How to have a property on ObjectContext which returns the derived entities?

With EF v1, we have an ObjectContext which has one property per EntitySet. The "problem" is that if you have an entity type Person and an entity type Employee which inherits Person, you will have only one property Persons because there is only...