Address Autocomplete with Google Maps and Places JavaScript API

This post will focus on this demo I've created on Codepen. It's actually a pretty simple demo, but it illustrates a bunch of different concepts. There's also a few nuances »

NullReferenceException from a cast?

Just to show that no matter how experienced you are as a programmer, you can still get blind-sided by stupidly simple things sometimes, here's my tale of woe. In one »

DbEntityValidationException: Which Properties Are Failing Validation?

Just a little quick tip to make your life easier. You'll get a DbEntityValidationException when Entity Framework attempts to save an entity to the database and fails because one or »

Thread-Safe, Strongly-Typed Memory Caching in C#

Quick and simple. This extension adds a strongly-typed version of AddOrGetExisting that utilizes Lazy<T> to ensure thread-safety. public static class ObjectCacheExtensions { public static T AddOrGetExisting<T& »

Stop using [Bind]

There's a lot to like about ASP.NET MVC, but some parts are just atrocious. The Bind attribute is one of those atrocious parts. For the seemingly few who are »

A Truly Generic Repository, Part 2

This is part of a series on using generics in C# to make code more resuable. Other articles in this series: Generic Entity Base Class A Truly Generic Repository, Part »