LINQPad: Dump with Syntax Highlighting

LINQPad is where I breathe and eat in a typical day at work. I use a lot of extension methods inside that makes my life easy. I decided to share some of the most useful ones here when I get some time to write. Most of them were found online…

Why does ASP.NET MVC 4 SimpleMembershipProvider keep creating aspnetdb.mdf?

When you create a new ASP.NET MVC 4 Internet Web Application it creates a nice template with authentication enabled with new SimpleMembershipProvider It contains InitializeSimpleMembershipAttribute class which creates built-in Entity Framework Code First database and initializes Simple Membership: using (var context = new UsersContext()) { if (!context.Database.Exists()) { // Create the…