Category Archives: 8606

WAQS NuGet PowerShell command usage: init ViewModel using Roslyn

If you take a look to WCFAsyncQueryableFunctionsClientWPF.psm1 of WCFAsyncQueryableServices.Client.WPF NuGet package, you can see the PowerShell command used to initialize ViewModel. After removing error and TFS management, this is the code of the powershell command to initialize the active document … Continue reading

Posted in 16868, 17894, 17895, 18440, 8606 | Leave a comment

Extend Visual Studio with NuGet PowerShell commands basis

There are many ways to extend Visual Studio. The most used is to vsix but today, I want to write about NuGet. In most cases, NuGet is used to add a dll reference or update a config file or things … Continue reading

Posted in 17894, 18440, 8606 | 1 Comment

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;     private Dictionary<string, List<string>> _typesHierarchyToAddInObjectContext;       public Dictionary<string, string> … Continue reading

Posted in 7671, 7674, 7675, 8606 | Leave a comment

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 … Continue reading

Posted in 7671, 7675, 8606 | Leave a comment

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 … Continue reading

Posted in 7671, 7674, 7675, 8606 | 3 Comments

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! [:D] Moreover, the activation of this is really easier than before. You don’t have anything to do! You just need … Continue reading

Posted in 7671, 8606 | 2 Comments