I have a simply code in Entity Framework 4.1 code first:
Entity Framework 4.1
PasmISOContext db = new PasmISOContext(); var user = new User(); user.CreationDate = Da
For those of you who would still have this error with all keys properly defined, have a look at your entities and make sure you don't leave a datetime field with a null value.