Shared code for a blog post I wrote about persistence ignorance with Entity Framework