Hi is there a cleaner way to set default value in database first other than initialize in the partial class like below?
[MetadataType(typeof(PersonAttribute))]
public partial class person {
public person() {
isMale = true;
}
}
public class PersonAttribute
{
[Display(Name = "Title")]
[Required(ErrorMessage = "Please enter the news title.")]
public string UserTitle { get; set; }
public bool isMale { get; set; }
}