コード例 #1
0
ファイル: FWConverter.cs プロジェクト: sillsdev/WorldPad
        /// <summary>
        /// Load one wordform from DB 'reader'.
        /// As long as the wf id is the same, then keep going,
        /// as it is the same wordform.
        /// </summary>
        /// <param name="reader">'true' if there are more rows (wordforms) to process, otherwise, 'false'.</param>
        /// <returns></returns>
        internal bool LoadFromDB(SqlDataReader reader)
        {
            bool moreRows = true;             // Start on the optimistic side.

            if (m_id == 0)
            {
                int id = reader.GetInt32(0);
                m_id = id;
                while (moreRows && (reader.GetInt32(0) == m_id))
                {
                    FwAnalysis anal = new FwAnalysis();
                    moreRows = anal.LoadFromDB(reader);
                    m_analyses.Add(anal);
                }
            }
            return(moreRows);
        }
コード例 #2
0
ファイル: FWConverter.cs プロジェクト: sillsdev/WorldPad
		/// <summary>
		/// Load one wordform from DB 'reader'.
		/// As long as the wf id is the same, then keep going,
		/// as it is the same wordform.
		/// </summary>
		/// <param name="reader">'true' if there are more rows (wordforms) to process, otherwise, 'false'.</param>
		/// <returns></returns>
		internal bool LoadFromDB(SqlDataReader reader)
		{
			bool moreRows = true; // Start on the optimistic side.
			if (m_id == 0)
			{
				int id = reader.GetInt32(0);
				m_id = id;
				while (moreRows && (reader.GetInt32(0) == m_id))
				{
					FwAnalysis anal = new FwAnalysis();
					moreRows = anal.LoadFromDB(reader);
					m_analyses.Add(anal);
				}
			}
			return moreRows;
		}