public static bool InsertContent(ContentDbEntity contentDbEntity)
        {
            try
            {
                if (contentDbEntity == null)
                {
                    throw new ArgumentNullException(nameof(contentDbEntity));
                }

                using (var connection = GetConnection())
                {
                    int result = connection.Execute(ContentDbEntity.InsertSql(), contentDbEntity);

                    if (result != 1)
                    {
                        LogManager.GetCurrentClassLogger().Error("数据插入失败");
                    }
                    else
                    {
                        return(true);
                    }
                }
            }
            catch (Exception ex)
            {
                LogManager.GetCurrentClassLogger().Error(ex);
            }

            return(false);
        }
        public static IEnumerable <ContentDbEntity> Search(DateTime afterDateTime, int pageSize = -1)
        {
            var result = new List <ContentDbEntity>();

            try
            {
                using (var connection = GetConnection())
                {
                    //todo: 还未仔细查询
                    result = connection.Query <ContentDbEntity>(ContentDbEntity.SearchAllSql()).ToList();
                }
            }
            catch (Exception ex)
            {
                LogManager.GetCurrentClassLogger().Error(ex);
            }

            return(result);
        }