Using EntityFramework codefirst’s latest version (4.3), I’ve created a table with column Enabled(bit). Then I’ve found out that it has a default value of false, can I set the default value to true?
I’ve found something weird when I renamed the column to Disabled the default value becomes null.
You can initialize
Enabledtotruein the constructorYour
Disabledcolumn must a a nullable column. Hence its default value is null.