Пример #1
0
        /// <summary>
        /// This function gives the row specified by the DBKey.
        /// </summary>
        /// <param name="DBKey"><see cref=" string"></see> representation of primary key values.</param>
        /// <returns><see cref=" DASDataRow"></see> object.</returns>
        public DASDataRow ItemByDBKey(string DBKey)
        {
            DASDataRow ReturnValue = null;

            foreach (DASDataRow row in m_Rows)
            {
                if (row.DBKey == DBKey)
                {
                    ReturnValue = row;
                    break;
                }
            }

            return(ReturnValue);
        }
Пример #2
0
 /// <summary>
 /// This is the constructor of the class.
 /// </summary>
 /// <param name="Row"><see cref=" DASDataRow "></see> object needed for initialization.</param>
 /// <param name="Column"><see cref=" DASDataColumn "></see> object needed for initialization.</param>
 public DASColumnValue(DASDataRow Row, DASDataColumn Column)
 {
     _row    = Row;
     _column = Column;
 }
Пример #3
0
 /// <summary>
 /// This sub removes the row from the collection.
 /// </summary>
 /// <param name="Row"><see cref=" DASDataRow "></see> object to be removed.</param>
 /// <remarks>It does not delete the row from the database.</remarks>
 public void Remove(DASDataRow Row)
 {
     m_Rows.Remove(Row);
 }
Пример #4
0
 /// <summary>
 /// This functions checks whether a given row is part of the collection.
 /// </summary>
 /// <param name="Row"><see cref=" DASDataRow "></see> object to be checked.</param>
 /// <returns><c>True</c>, if collection contains the row.</returns>
 public bool ContainsValue(DASDataRow Row)
 {
     return(m_Rows.Contains(Row));
 }
Пример #5
0
 /// <summary>
 /// This sub adds given row to the collection.
 /// </summary>
 /// <param name="Row"><see cref=" DASDataRow "></see> object to be added.</param>
 public void Add(DASDataRow Row)
 {
     m_Rows.Add(Row);
 }