I am using EF4.3.1 and MVC4 code first. My database is being created except for one column and no error is given. Why would this column not be created? Should I be using the EnumDataType attribute (it doesn't seem to do anything)?
public class Setting
{
public Guid SettingId { get; set; }
public string Key { get; set; }
public string Value { get; set; }
[Column("DataType", TypeName = "varchar")]
public SettingDataType DataType { get; set; }
}
public enum SettingDataType
{
[Description("String")]
text,
[Description("Integer")]
integer,
[Description("Boolean")]
boolean
}