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 »

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 »

A Truly Generic Repository, Part 1

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 »

Generic Entity Base Class

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 (this article) A Truly Generic »

Be Careful with Fluent Configuration and Entities Using Complex Types

I ran into a very odd issue today. I was attempting to add a new record and was getting database integrity exceptions because a particular set of columns were configured »

Migrating Production Database with Entity Framework Code First

The title of this post is a bit of a misnomer, because I will definitely not be showing you how to run migrations against a production database, but rather the »