2004-03-10 Umadevi S (sumadevi@novell.com)
[mono.git] / mcs / class / System.Data / System.Data / DataRelation.cs
index c676ffc97f08fc826d1f26f34c84e5cae57ef04e..f41537297bda6f43fb6be174bde84d574bbd8918 100644 (file)
@@ -4,9 +4,11 @@
 // Author:
 //   Daniel Morgan <danmorg@sc.rr.com>
 //   Alan Tam Siu Lung <Tam@SiuLung.com>
+//   Tim Coleman <tim@timcoleman.com>
 //
 // (C) 2002 Daniel Morgan
 // (C) 2002 Ximian, Inc.
+// Copyright (C) Tim Coleman, 2003
 //
 
 using System;
@@ -62,7 +64,7 @@ namespace System.Data
                        this.childColumns = childColumns;
                        this.createConstraints = createConstraints;
                        if (parentColumns.Length != childColumns.Length)
-                               throw new InvalidConstraintException ();
+                               throw new ArgumentException ("ParentColumns and ChildColumns should be the same length");
                        DataTable parentTable = parentColumns[0].Table;
                        DataTable childTable = childColumns[0].Table;
                        if (parentTable.DataSet != childTable.DataSet)
@@ -82,6 +84,14 @@ namespace System.Data
                        throw new NotImplementedException ();
                }
 
+#if NET_1_2
+               [MonoTODO]
+               public DataRelation (string relationName, string parentTableName, string parentTableNamespace, string childTableName, string childTableNamespace, string[] parentColumnNames, string[] childColumnNames, bool nested)
+               {
+                       throw new NotImplementedException ();
+               }
+#endif
+
                #endregion // Constructors
 
                #region Properties