Example #1
0
        /// <summary>获取指定时间后更新过的数据数量</summary>
        /// <param name="last"></param>
        /// <returns></returns>
        public virtual Int32 GetAllUpdatedCount(DateTime last)
        {
            var name = LastUpdateName;

            var where = String.IsNullOrEmpty(name) ? null : Facotry.MakeCondition(LastUpdateName, last, ">");
            return(Facotry.FindCount(where, null, null, 0, 0));
        }
Example #2
0
        /// <summary>获取指定时间后更新过的数据数量</summary>
        /// <param name="last"></param>
        /// <returns></returns>
        public virtual Int64 GetAllUpdatedCount(DateTime last)
        {
            var fi = Facotry.Table.FindByName(LastUpdateName);

            return(Facotry.FindCount(fi > last, null, null, 0, 0));
        }