Posts

Showing posts from March, 2016

Azure: Top 3 Links

The top 3 Azure links are: Azure portal Azure Billing Azure Pricing Calculator

Azure PowerShell: Have PSVersion 5

Image
If you're new to the Azure PowerShell save yourself some hassle and immediately go to PowerShell Version 5. Otherwise you will end up struggling with many issues like: PS C:\Windows\system32> Import-AzureRM Import-AzureRM : The term 'Import-AzureRM' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + Import-AzureRM + ~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Import-AzureRM:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException Windows 7 for example usually has version 3 installed. You can check the version by simply pasting into the command prompt: $PSVersionTable How to upgrade to PowerShell 5? Well, just by installing the WMF 5 . And a general remark for PowerShell: Run as Administrator. Sources: How to install and configure Az

Visual Studio: Scaffolding, EF and virtual

virtual properties "give EF a hook into your plain C# classes and enable features such as an efficient change-tracking mechanism. The EF needs to know when a property value on a model changes, because it might need to issue a SQL UPDATE statement to reconcile those changes with the database." Sources: Professional ASP.NET MVC 5, Chapter 4

Visual Studio Usage: Automatic properties generation

Image
"Visual Studio has a useful snippet for creating auto-implemented properties". Type "prop" Tab Specify property's type Tab Specify property's name Sources: Professional ASP.NET MVC 5, Chapter 4