示例#1
0
        /// <summary>
        /// 根据ID删除记录
        /// </summary>
        /// <param name="id">要删除的记录ID</param>
        /// <returns></returns>
        public virtual object DeleteById(object id)
        {
            DataAccessModel <T> entityDao = new DataAccessModel <T>();
            object ret = HasChild(id);

            if (ret != null)
            {
                return(ret);
            }
            _affectedRows = entityDao.DeleteById(id);

            return(ret);
        }