/// <summary>
			/// Performs verification on the table.
			/// </summary>
			/// <param name="relation">The relation to check.</param>
			protected override void AddCore (DataRelation relation)
			{
				if (relation.ChildTable.DataSet != dataSet || relation.ParentTable.DataSet != dataSet)
				   throw new DataException ();

				base.AddCore (relation);
				relation.ParentTable.ChildRelations.Add (relation);
				relation.ChildTable.ParentRelations.Add (relation);
				relation.SetDataSet (dataSet);
				relation.UpdateConstraints ();
			}
Exemple #2
0
            /// <summary>
            /// Performs verification on the table.
            /// </summary>
            /// <param name="relation">The relation to check.</param>
            protected override void AddCore(DataRelation relation)
            {
                if (relation.ChildTable.DataSet != dataSet || relation.ParentTable.DataSet != dataSet)
                {
                    throw new DataException();
                }

                base.AddCore(relation);
                relation.ParentTable.ChildRelations.Add(relation);
                relation.ChildTable.ParentRelations.Add(relation);
                relation.SetDataSet(dataSet);
                relation.UpdateConstraints();
            }