Beispiel #1
0
        /// <summary>
        /// 根据Id集合批量删除
        /// </summary>
        /// <param name="ids">id集合</param>
        /// <param name="entity">指定实体(表名)</param>
        /// <returns></returns>
        public virtual OperateStatus DeleteBatchs(IList <Guid> ids)
        {
            //状态信息
            var status = new OperateStatus();

            if (ids.Count < 1 || ids == null)
            {
                status.Message = "无删除数据";
            }

            //批量删除
            status = repository.DeleteBatchs(ids);

            if (status.IsSuccessful)
            {
                //指定成功默认返回结果值
                status.Message = "成功";
            }
            return(status);
        }