Ejemplo n.º 1
0
        /// <summary>
        /// Finds the latest versions, excluding historic ones.
        /// </summary>
        /// <param name="criteria"></param>
        /// <returns></returns>
        public virtual IList <T> Find(IQuery criteria, bool onlyLatestVersions)
        {
            if (onlyLatestVersions)
            {
                criteria.AddCondition("VersionRefId", ExpressionType.Equal, -1);
            }

            return(_repo.Find(criteria));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Finds latest versions, excluding historic ones.
 /// </summary>
 /// <param name="criteria"></param>
 /// <param name="pageNumber"></param>
 /// <param name="pageSize"></param>
 /// <returns></returns>
 public override PagedList <T> Find(IQuery criteria, int pageNumber, int pageSize)
 {
     criteria.AddCondition("VersionRefId", ExpressionType.Equal, -1);
     return(_repo.Find(criteria, pageNumber, pageSize));
 }