示例#1
0
        public List <MessageInfo> GetMessageInfoPage(int messageBoardThreadId, ref int pageIndex, int pageSize, out int rowCount)
        {
            List <MessageInfo> list;

            try
            {
                using (IDataStoreContext dataStoreContext = this._DataStore.CreateContext())
                {
                    list = dataStoreContext.cms_Contents_GetMessageInfoPageFromThreadIndex(messageBoardThreadId, ref pageIndex, pageSize, out rowCount);
                }
            }
            catch (SqlException ex)
            {
                _Log.Error("Error at cms_Contents_GetMessageInfoPageFromThreadIndex", ex);
                throw new DataStoreException(ex, true);
            }
            return(list);
        }