Stories, Tutorials
& Life Tips
Deep dives on coding, health, recipes, travel and everything in between.
📍 Explore Reading Paths
Follow curated journeys from beginner to expert

Getting started with TypeScript and Gulp
I’ll be upfront – getting TypeScript building is frustrating, especially the first time. I’m starting to get the hang of it, but keep finding myself running into brick walls with no …

How to Replace child collections in Entity Framework?
ORMs are nice. Usually. That is until you hit a mostly unhelpful exception like “An object with the same key alrea…

Uploading streaming media content to Azure
I have been working at Swank Motion Pictures on a SmartTV application to offer a cloud-based on-demand streaming movie s…

Learning Routing and AttributeRouting Web API 2 Controllers in MVC with Areas
The Acumen ASP.NET MVC development team started working with the new Web API 2 controllers released with Visual Studio 2…

New features about ASP.NET and C#
Microsoft is coming out with a bunch of new features that make me very glad to be a .NET-oriented developer. The ASP.NET…

How to Configure Log4Net file appender in C#?
I’ll be honest. Setting up Log4net for ASP.NET MVC apps is a pain. For better or worse, Log4net doesn’t erro…

How to use libgit2sharp to commit to Git repositories in C# ?
I helped design an interesting deployment strategy for an Azure application. For one of our projects, we have an existin…

Listening to IIS Application pool recycle events in ASP.NET
One of my .NET apps was having some strange issues. It was attached to an IIS app pool, so it was possible that the app …

Using Moq to Mock Entity Framework DBSet objects
Unit testing in .NET is pretty nice when your dependency injection/IoC is set up well, but Entity Framework 6 isn’…

Learning Postgresql (npgsql), Entity Framework 7 (EF Core), and ASP.NET MVC 6
Finally, Entity Framework has support for databases other than SQL Server, and as many of us know, MVC 6 is cross-platfo…

Ninject InSingletonScope still creates new objects
Me: Kernel.Bind<IDataCache>().To<InMemoryDataCache>().InSingletonScope(); Ninject: Haha, nah. Here’s …

Correct way to Inject MVC and HTTP attributes and filters using Ninject
Ninject has some fun quirks. For instance, one "bug" I came across was that if you hit an ASP.NET controller with a cust…

Ninjecting in App_Start classes and static classes
Let's say you are doing some work on your AuthConfig class, in your Global.asax, or maybe a static class. You can’…

Best way to Update or Replace Entities in Entity Framework 6
I’ve been working with Entity Framework for a few years and one pain-point for me was updating existing data entit…

Authorize .NET MVC Core API requests with OpenIddict and Identity
OpenIddict is an excellent open-source library for dealing with OAuth and OpenID in the new MVC Core (previously known a…