I'm using the code first pattern with Entity Framework 4.0. I want some columns in the DB to have default values.
public class Customer
{
public int Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
//I need some kind of attribute like this
[ColumnAttribute.Default = false]
public bool IsEnabled { get; set; }
}
I'm looking for a way to define the IsEnabled column default value to be false.