/// <summary> /// 创建记录 /// </summary> /// <param name="entity"></param> /// <returns></returns> public override bool Create(Domain.Attribute entity) { var result = false; using (UnitOfWork.Build(DbContext)) { result = base.Create(entity); //新建数据库表字段 _metadataProvider.AddColumn(entity); } return(result); }
public void AddColumn(Domain.Attribute attr) { _metadataProvider.AddColumn(attr); }