Posted by Scott Anderson in DevelopmentMay 27th, 2010 | 7 Comments
Recently at work, I’ve had the pleasure of working on a new project written in ASP.NET MVC2 under .NET 4.0. Our team has decided to use Entity Framework 4 for data access, and for the most part, we’ve been very pleased with this decision. One of the things I tend to make use of pretty regularly is default values for columns in SQL server. In doing this, I’ve encountered a pretty nasty bug in EF4. Here’s the deal:
I have several tables in my application where I add some basic auditing columns, such as CreateDate, CreatedBy, LastUpdatedDate, and LastUpdatedBy. ...