Seed Entity Framework Code First With JSON Using C# Dynamic

image.png

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. https://github.com/pkellner/EntityFrameworkSeedFromJSON 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

image.png

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

Awesome Visual Tool For Working With GIT or HG

image.png

When I switched my primary version control from SubVersion to GIT (actually, I switched to HG first but later moved to GIT when it seemed that is where most people I know went) I learned it using just the shell prompt (typing git status, etc.).  It gets really tricky really quickly and I would find myself spending lots of time looking at logs trying to figure out what to do. My friend Ward Bell mentioned he had found a tool that he thought stood out above the rest called SmartGit/HG from syntevo .  Ward, never having steered me wrong before (well, maybe once, but let’s not talk about that) gave me inspiration to try the tool.  I did, I love it, and for the past year or so it has just gotten better and better with every … Continue Reading

Follow

Get every new post delivered to your Inbox

Join other followers: