예제 #1
0
        public IList <Link> Get(string where, string orderBy, int startIndex, int noRecords, out int totalNoRecords)
        {
            IList <Link> links = new List <Link>();

            using (SprocWrapper db = new SprocWrapper())
            {
                using (IDataReader reader = db.Links_Get(where, orderBy))
                {
                    FillLinkCollection(reader, links, 0, Int32.MaxValue, out totalNoRecords);
                }
            }

            return(links);
        }