Skip to content

I Love the Validation Error Messages I Get From EntityFramework CodeFirst 4.1!

Updated: at 11:18 PM

I’ve been using EntityFramework’s CodeFirst 4.1 on a new project I’ve been working.  I plan to blog quite  bit about it, but in the mean time I just felt the need to share.  I’ve got some fairly complex code where I add an object tree to the database context (which turns into SqlServer data).  When I call db.SaveChanges(), I get an awesome error (see below) telling me exactly why it failed.

I’m currently on the honey moon with EF CodeFirst.  I only have about 10 tables (4 deep at most).  Life is good.