Seed Entity Framework Code First With JSON Using C# Dynamic


If you just want the short version, go to the this GitHub Repository and you’ll find a very simple project that I’ll explain in more detail here. Below are the steps necessary to achieve converting JSON into Entity Framework Seeded data. Copy the JSON file into your Visual Studio project and make the build action (file property in VS) Embedded Resource. Next, find out the name of the embedded resource. If you just don’t know it or don’t want to spend time disassembling the project you can use the GetManifestResourceNames() method as shown below.  I find that is quicker and I don’t typically have those tools loaded when I need or want then. Once we have the manifest name, … Continue Reading

GitHub Visual Studio 2015 Extension, Getting Started


I’ve been using Git as my source control of choice for years now.  I’ve recently discovered the GitHub Visual Studio extension that takes some of the hassles away from this process.  Specifically, creating a new Git Repository from a Visual Studio 2015 project and publishing it to GitHub is always a small dance.  Now, it’s trivial and with this blog post, if I ever forget how (or you do), the simple steps and screen shots are here. Step 1 – Make sure you have the Visual Studio 2015 Git Extension installed.  To do that, simply go to Team/Manage Connections   and then verify the extension is installed (or install it)   Step 2 – Create a Visual Studio 2015 Project Just like any other project you would create with … Continue Reading

LINQ Support in Visual Studio 2015 Debugger Awesome


I’ve been wanting to do this for a very long time.  I’m in the debugger of Visual Studio 2015 and I have some data structure that is a collection of objects.  To find what I want, I’ve had to either write ugly conditional debugging statements or put in some temporary c# if statements to stop on what I wanted and examine it. Now, I can just write the LINQ code in the watch window of Visual Studio and see exactly what I want.  Check out the screen shot below and notice that I just typed in: meetupResults.results.Select(a=>a.urlname).ToList() and I got exactly what I wanted. Very nice! … Continue Reading

Visual Studio 2015, First and Second Impressions


The new Microsoft Visual Studio 2015 is out and I have to say I’m hooked. I was previously hooked on Visual Studio 2012 even though I had a license for VS 2013. The reason was that on bigger projects I’d find that editing source files (C#) was just slow. The VS editor would be slow to keep up with my typing and I’d constantly be getting unexplained pauses while VS did some sort of internal management (who knows what and who cares). I’ve been using VS2015 now for a few weeks and I can 100% say that it is always faster than VS2012 (and of course VS2013).  I also like a lot of the features, one in particular which spurred me to make this post is it shows me (on the method name as shown below) when the file was last updated. It knows that … Continue Reading


Get every new post delivered to your Inbox

Join other followers: