Exemple #1
0
        /// <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);
        }
Exemple #2
0
 public void AddColumn(Domain.Attribute attr)
 {
     _metadataProvider.AddColumn(attr);
 }