Coding

Quick Tip: Manually Run EF Migrations on External Databases

Entity Framework migrations are a great thing. They’ve made my development life a LOT easier. Automated migrations can cause problems, especially on a project with multiple developers involved. For that, we use manual migrations through the Package Manager Console.

But how do you manually run these migrations against your test (or live) server when your deployment tool doesn’t run them? If you have access to the database in question, you can add the ConnectionString and ProviderName parameters at the Package Manager Console prompt and make life a lot easier:

Update-Database -ConnectionString "MY_CONNECTION_STRING" -ConnectionProviderName "System.Data.SqlClient"

You can pull your connection string direct from your web.config transform, no special “magic” needed.

Enjoy! Continue reading “Quick Tip: Manually Run EF Migrations on External Databases”

Advertisements
Coding

Five Tips for Remote Developers

When I first shifted my career to one as a remote developer, it was admittedly a bit daunting. I was transitioning from a slower paced government position to a fast paced consulting firm. I was jumping heavy into PHP (alongside my .Net work) which I wasn’t fully versed with yet, and I even switched from PC to Mac to be on the same page with the development setup at the main office. Five and a half years later I’m still running strong and have a pretty good take on how to make it work. While my remote developer status will be coming to an end soon, here are the five key things that have helped me be successful. Continue reading “Five Tips for Remote Developers”

Coding

Initial Impressions: Visual Studio for Mac

While there was a premature leak earlier this week in the news, you can now officially download Visual Studio for Mac. While there isn’t much you can necessarily say in one day of poking around, in addition to the fact that this is a “preview” app, here are a few initial impressions on it. Continue reading “Initial Impressions: Visual Studio for Mac”

Coding

Soup to Nuts: Access VMWare Fusion .Net Apps from Your Mac

I typically spend at least half of my day developing .Net apps from within Visual Studio on a Mac. I do this thanks to the power of VMWare Fusion. Most of the time I run my tests in Blisk or Edge, but there are times where I need to verify functionality in Safari without pushing my code up to a test server. While access isn’t immediately available, here are the steps you need to make it happen. Continue reading “Soup to Nuts: Access VMWare Fusion .Net Apps from Your Mac”

Coding

How to Download All Containers and Blobs in Azure with PowerShell

PowerShell to the rescue once again! A week back I needed to create an archive of all of the video content processed by Azure Media Services (AMS). While I have used my trusty Azure Storage Explorer tool in the past, it only allowed me to deal with one container at a time. AMS is structured so that each new job that was created stored it’s files in a new container, which made manually grabbing 250+ containers named with GUIDs rather difficult. Continue reading “How to Download All Containers and Blobs in Azure with PowerShell”