How to change Caps Lock key to Shift key in Microsoft Windows 7 or disable it

If you want to change the Caps Lock key to a Shift key, use the following registry changes:   Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] "Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,2a,00,3a,00,00,00,00,00   If you want to completely disable the Caps Lock key, use the following registry changes: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard …

How to set the connectionstring at runtime of a dbcontext in Entity Framework 4.2

If you want to set the connectionstring for a dbcontext, when using EntityFramework 4.2, just create a partial class for the specific dbcontext and add a constructor that call’s de dbcontext constructor with connectionstring. Now you can instantiate MyDatabaseEntities with a connectionstring.   public partial class MyDatabaseEntities { public MyDatabaseEntities(string …