Browse by Tags

All Tags » VS (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;...
Posted by Matthieu MEZIL | with no comments
Filed under: , , ,

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
Filed under: , ,

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...
Posted by Matthieu MEZIL | 1 comment(s)
Filed under: , , ,

Debug with the .Net Framework code

With VS2008, we were able to Debug with the .Net Framework code. But there weren't all the dll. With the SP1, yes! Moreover, the activation of this is really easier than before. You don't have anything to do! You just need to go to the call stack...
Posted by Matthieu MEZIL | 2 comment(s)
Filed under: ,