public virtual IEnumerable <T> FetchByUrlLike(string urlPattern) { IList <T> resultList = new List <T>(); SimpleQuery result = _dbTable.All() .Where(_dbTable.url.Like(string.Concat("%", urlPattern, "%"))) .OrderByDescending(_dbTable.visit_count); return(result.Cast <T>()); }