1 write to RelationName
System.Data.Common (1)
System\Data\ProviderBase\SchemaMapping.cs (1)
1216relation.RelationName = tmp;
29 references to RelationName
System.Data.Common (29)
System\Data\DataColumnCollection.cs (2)
496throw ExceptionBuilder.CannotRemoveChildKey(_table.ParentRelations[i].RelationName); 507throw ExceptionBuilder.CannotRemoveChildKey(_table.ChildRelations[i].RelationName);
System\Data\DataRelation.cs (3)
32[DefaultProperty(nameof(RelationName))] 543((ChildTable.NestedParentsCount > 0) && !(ChildTable.DataSet!.Relations.Contains(RelationName))))) 764public override string ToString() => RelationName;
System\Data\DataRelationCollection.cs (6)
342int result = NamesEqual(relation.RelationName, name, false, GetDataSet().Locale); 405if (NamesEqual(name, this[i].RelationName, true, locale) != 0) 407throw ExceptionBuilder.DuplicateRelation(this[i].RelationName); 495throw ExceptionBuilder.RelationNotInTheDataSet(relation.RelationName); 816foreignKey.ConstraintName = relation.RelationName; 854UnregisterName(relation.RelationName);
System\Data\DataRelationPropertyDescriptor.cs (1)
11internal DataRelationPropertyDescriptor(DataRelation dataRelation) : base(dataRelation.RelationName, null)
System\Data\DataSet.cs (1)
563list.Add(rel.RelationName);
System\Data\DataTable.cs (1)
6580if (!DataSet.Relations.Contains(rel.RelationName))
System\Data\Merger.cs (6)
529int iDest = _dataSet.Relations.InternalIndexOf(relation.RelationName); 539SR.Format(SR.DataMerge_MissingDefinition, relation.RelationName), 550SR.Format(SR.DataMerge_ReltionKeyColumnsMismatch, relation.RelationName), 560SR.Format(SR.DataMerge_ReltionKeyColumnsMismatch, relation.RelationName), 587destRelation = new DataRelation(relation.RelationName, parentColumns, childColumns, relation._createConstraints); 601throw ExceptionBuilder.MergeMissingDefinition(relation.RelationName);
System\Data\RelationshipConverter.cs (2)
56values = new object[] { rel.RelationName, rel.ParentKey.Table.TableName, rel.ChildKey.Table.TableName, rel.ParentColumnNames, rel.ChildColumnNames, rel.Nested }; 64values = new object[] { rel.RelationName, rel.ParentKey.Table.TableName, rel.ParentKey.Table.Namespace, rel.ChildKey.Table.TableName,
System\Data\xmlsaver.cs (5)
1152root.SetAttribute(Keywords.NAME, XmlConvert.EncodeLocalName(rel.RelationName)); 1657if (!rel.RelationName.StartsWith(rName, StringComparison.Ordinal)) 1692if (rel.RelationName != fk.ConstraintName) 2153if (foreign.ConstraintName != rel.RelationName) 2155constraint.SetAttribute(Keywords.MSD_RELATIONNAME, Keywords.MSDNS, XmlConvert.EncodeLocalName(rel.RelationName));
System\Data\XMLSchema.cs (2)
445if (string.Equals(rels[i].RelationName, strName, StringComparison.Ordinal)) 1330if (fKey[0].Table!.DataSet!.Relations[iExisting].RelationName != relName)