I have a DB that has constraints on non-nullable fields.
Let's look at just one: ModifiedDate.
The constraint defaults to getdate() when not supplied a value in an INSERT command.
My code is using Entity Framework so I craft up an entry object, create a datetime instance, set its ModifiedDate field, then execute context.SaveChanges() and it works fine.
However, if I create the object and don't set entry.ModifiedDate then context.SaveChanges() fails before the constraint could set a default value