Month: June 2014

  • View Generated SQL in Entity Framework (EF)

    Hey everyone, Just a quick post on how to view the generated sql in entity framework. To start with, just add the following line to your db context constructor: public class TestDbContext : DbContext { public TestDbContext() : base(“name=TestDbContext”) { this.Database.Log = s => System.Diagnostics.Debug.WriteLine(s); //This line } … With this line added, you should…

  • Dragging a File from File Explorer Causes Google Chrome to Crash

    Hey everyone, A team member found an interesting bug today that caused chrome to go non-responsive. The cause was simply dragging a file from the file explorer onto a drag and drop upload area. It is reproducible on every site I’ve tested, including Gmail and Dropbox. Reproduce Go to https://mail.google.com Click compose Click attach files…

  • How to Open the Same File Twice in Visual Studio

    Hey everyone, I was working on a fairly large class in visual studio and having a bit of trouble comparing two different areas within it. Thankfully, StackOverflow knew of a way to make things a lot easier – open the same file twice: – With the tab you want to duplicate currently active, select Window…

Create a website or blog at WordPress.com