In a legacy app, most string properties can\'t be null and need to have a default value of string.empty.
I know it\'s possible to do this with migrations, but I\'m l
You can set the default value within the constructor
class Foo : Model { public bool DefaultBool { get; set; } public Foo() { DefaultBool = true; } }
When you create a new Foo it will set the true value for the property DefaultBool. This is not a default constraint but it works.
Foo
DefaultBool