/// <summary> /// 删除记录 /// </summary> /// <param name="entity"></param> /// <returns></returns> public bool Delete(Domain.Attribute entity) { var flag = false; using (UnitOfWork.Build(DbContext)) { flag = base.DeleteById(entity.AttributeId); //删除表字段 _metadataProvider.DropColumn(entity); } return(flag); }
public void DropColumn(Domain.Attribute attr) { _metadataProvider.DropColumn(attr); }