Example #1
0
        /// <summary>
        /// Gets all search log items
        /// </summary>
        /// <returns>Search log collection</returns>
        public static SearchLogCollection GetAllSearchLogs()
        {
            DBSearchLogCollection dbCollection = DBProviderManager <DBSearchLogProvider> .Provider.GetAllSearchLogs();

            SearchLogCollection collection = DBMapping(dbCollection);

            return(collection);
        }
        private static SearchLogCollection DBMapping(DBSearchLogCollection dbCollection)
        {
            if (dbCollection == null)
                return null;

            SearchLogCollection collection = new SearchLogCollection();
            foreach (DBSearchLog dbItem in dbCollection)
            {
                SearchLog item = DBMapping(dbItem);
                collection.Add(item);
            }

            return collection;
        }
Example #3
0
        private static SearchLogCollection DBMapping(DBSearchLogCollection dbCollection)
        {
            if (dbCollection == null)
            {
                return(null);
            }

            SearchLogCollection collection = new SearchLogCollection();

            foreach (DBSearchLog dbItem in dbCollection)
            {
                SearchLog item = DBMapping(dbItem);
                collection.Add(item);
            }

            return(collection);
        }