Browse by Tags

All Tags » VS » Entity Data Model (EDM) (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 debug a code generator used by VS?

In my case, I wanted to debug my edmx CodeGen but you can do it for a lot of other cases. So how to debug your CodeGen? I think there is probably a better way but this is what I did: In my CodeGen, I put a MessageBox.Show I open 2 VS: one with my CodeGen...
Posted by Matthieu MEZIL | with no comments

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...