private bool DataSetDefinesKey (string name) { foreach (ConstraintStructure c in reservedConstraints.Values) if (c.TableName == name && (c.IsPrimaryKey || c.IsNested)) return true; return false; }