The model backing the ‘‘ context has changed since the database was created. Consider using Code First Migrations

DB Context has changed I was working with an example in Entity Framework 5 and ran across this commonly seen issue that DB context has changed, especially after changing my Books model. The model backing the ‘BooksDbContext’ context has changed since the database was created. Consider using Code First Migrations This really mean that my […]

Open Chrome in incognito mode

Incognito mode on Windows 7 This article assumes you are on Windows 7. Easiest way to open Chrome in incognito: When in Chrome, press CTRL+SHIFT+N Click an icon to open chrome in incognito mode: Click Start and type chrome. One or more entries for Google chrome should show up Then, right click the first Google […]

Pascal case vs. camel case vs. hungarian – quick example

Pascal case vs. Camel case vs. Hungarian notation It’s funny how often we forget the name of the type of casing when writing variable names. Pascal case example HotelManager, DetergentQuality, AccountNumber etc. Capitalize first character of important words Camel case example hotelManager, detergentQuality, AccountNumber etc. Start with lower case and then capitalize first character of […]

devenv.exe opens Visual Studio 2008 (BIDS) instead of Visual Studio 2012

BIDS or VS 2010? I installed BIDS (Visual Studio 2008) after installing Visual Studio 2012. This caused Start -> Run -> devenv.exe to open BIDS instead of Visual Studio 2012. To switch back Visual Studio 2012 again: Visit the registry by going to Start -> Run -> regedt32 Go to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\devenv.exe Double click on […]