EF 如何添加字段到数据库???
[Table("AA")]
public class AA
{
[Key, Column(TypeName = "varchar"), MaxLength(12)]
public string Id { get; set; }
public virtual int age{ get; set; }
[MaxLength(36)]
public string Name{ get; set; }//新增字段
}
数据库有表AA。里面有字段id,age。 现在想增加Name字段。请问具体步骤怎样写??