コード例 #1
0
        ///<Summary>
        ///TweetMentionsCollectionFromSearchFieldsCount
        ///This method returns the collection count of BOTweetMentions objects, filtered by a search object
        ///</Summary>
        ///<returns>
        ///Int32
        ///</returns>
        ///<parameters>
        ///
        ///</parameters>
        public static Int32 TweetMentionsCollectionFromSearchFieldsCount(BOTweetMentions boTweetMentions)
        {
            try
            {
                DAOTweetMentions daoTweetMentions = new DAOTweetMentions();
                daoTweetMentions.Id    = boTweetMentions.Id;
                daoTweetMentions.Time  = boTweetMentions.Time;
                daoTweetMentions.Topic = boTweetMentions.Topic;
                daoTweetMentions.Count = boTweetMentions.Count;
                daoTweetMentions.Avg   = boTweetMentions.Avg;
                daoTweetMentions.Min   = boTweetMentions.Min;
                daoTweetMentions.Max   = boTweetMentions.Max;
                daoTweetMentions.Stdev = boTweetMentions.Stdev;
                Int32 objCount = DAOTweetMentions.SelectAllBySearchFieldsCount(daoTweetMentions);
                return(objCount);
            }
            catch (Exception ex)
            {
                //logger.Log(ex.StackTrace, LOGLEVELS.ERROR);

                throw;
            }
        }
コード例 #2
0
        ///<Summary>
        ///TweetMentionsCollectionFromSearchFields
        ///This method returns the collection of BOTweetMentions objects, filtered by a search object
        ///</Summary>
        ///<returns>
        ///List<BOTweetMentions>
        ///</returns>
        ///<parameters>
        ///
        ///</parameters>
        public static IList <BOTweetMentions> TweetMentionsCollectionFromSearchFields(BOTweetMentions boTweetMentions)
        {
            try
            {
                IList <BOTweetMentions> boTweetMentionsCollection = new List <BOTweetMentions>();
                DAOTweetMentions        daoTweetMentions          = new DAOTweetMentions();
                daoTweetMentions.Id    = boTweetMentions.Id;
                daoTweetMentions.Time  = boTweetMentions.Time;
                daoTweetMentions.Topic = boTweetMentions.Topic;
                daoTweetMentions.Count = boTweetMentions.Count;
                daoTweetMentions.Avg   = boTweetMentions.Avg;
                daoTweetMentions.Min   = boTweetMentions.Min;
                daoTweetMentions.Max   = boTweetMentions.Max;
                daoTweetMentions.Stdev = boTweetMentions.Stdev;
                IList <DAOTweetMentions> daoTweetMentionsCollection = DAOTweetMentions.SelectAllBySearchFields(daoTweetMentions);

                foreach (DAOTweetMentions resdaoTweetMentions in daoTweetMentionsCollection)
                {
                    boTweetMentionsCollection.Add(new BOTweetMentions(resdaoTweetMentions));
                }

                return(boTweetMentionsCollection);
            }
            catch (Exception ex)
            {
                //logger.Log(ex.StackTrace, LOGLEVELS.ERROR);

                throw;
            }
        }