Esempio n. 1
0
        /// <summary>
        ///     Builds the <see cref="IIntermediateRow" /> struct for the specified <paramref name="row" />.
        /// </summary>
        /// <param name="row">The row.</param>
        /// <returns>
        ///     Returns the <see cref="IIntermediateRow" /> struct.
        /// </returns>
        private IIntermediateRow GetRow(IRow row)
        {
            IIntermediateRow intermediateRow = new IntermediateRow(row, this.RelationshipClass);

            ITable table = (ITable)this.RelationshipClass;

            for (int i = 0; i < table.Fields.FieldCount; i++)
            {
                IField field = table.Fields.get_Field(i);
                if (IsReadOnly(field))
                {
                    continue;
                }

                object value = row.get_Value(i);
                intermediateRow.Items.Add(field.Name, value);
            }

            return(intermediateRow);
        }
Esempio n. 2
0
        /// <summary>
        ///     Determines whether the specified <see cref="object" /> is equal to this instance.
        /// </summary>
        /// <param name="obj">The <see cref="object" /> to compare with this instance.</param>
        /// <returns>
        ///     <c>true</c> if the specified <see cref="object" /> is equal to this instance; otherwise, <c>false</c>.
        /// </returns>
        public override bool Equals(object obj)
        {
            IntermediateRow other = obj as IntermediateRow;

            return(this.Equals(other));
        }