15 instantiations of DataRelation
System.Data (15)
fx\src\data\System\Data\DataRelation.cs (1)
710
DataRelation clone = new
DataRelation
(relationName, parentColumns, childColumns, false);
fx\src\data\System\Data\DataRelationCollection.cs (7)
105
DataRelation relation = new
DataRelation
(name, parentColumns, childColumns);
119
DataRelation relation = new
DataRelation
(name, parentColumns, childColumns, createConstraints);
132
DataRelation relation = new
DataRelation
(null, parentColumns, childColumns);
147
DataRelation relation = new
DataRelation
(name, parentColumn, childColumn);
162
DataRelation relation = new
DataRelation
(name, parentColumn, childColumn, createConstraints);
175
DataRelation relation = new
DataRelation
(null, parentColumn, childColumn);
804
DataRelation newRelation = new
DataRelation
(rel.relationName, parents, childs, false);
fx\src\data\System\Data\DataSet.cs (1)
503
DataRelation rel = new
DataRelation
(relationName, parentkeyColumns, childkeyColumns, false);
fx\src\data\System\Data\Merger.cs (1)
505
destRelation = new
DataRelation
(relation.RelationName, parentColumns, childColumns, relation.createConstraints);
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (1)
1033
DataRelation relation = new
DataRelation
(name, new DataColumn[] { parentChapterColumn }, new DataColumn[] { chapterColumn }, false); // MDAC 71878
fx\src\data\System\Data\XDRSchema.cs (1)
605
relation = new
DataRelation
(table.TableName + "_" + _tableChild.TableName, parentKey, childKey, true);
fx\src\data\System\Data\XMLSchema.cs (3)
438
relation = new
DataRelation
(strName, parentKey, childKey, fCreateConstraints);
1137
relation = new
DataRelation
(relName, pKey, fKey);
1515
relation = new
DataRelation
(table.TableName + "_" + _tableChild.TableName, parentKey, childKey, true);
228 references to DataRelation
System.Data (228)
fx\src\data\System\Data\CodeGen\datacache.cs (11)
233
private string ChildPropertyName(
DataRelation
relation) {
253
private string ParentPropertyName(
DataRelation
relation) {
271
private string RelationFieldName(
DataRelation
relation) {
279
private bool ChildRelationFollowable(
DataRelation
relation) {
447
DataRelation
relation = index[i].FindParentRelation();
472
DataRelation
relation = index[i].FindParentRelation();
921
DataRelation
relation = ChildRelations[i];
940
DataRelation
relation = ParentRelations[i];
1027
dataSetClass.Members.Add(FieldDecl(typeof(
DataRelation
), RelationFieldName(dataSet.Relations[i])));
1317
foreach(
DataRelation
relation in dataSet.Relations) {
1339
New(typeof(
DataRelation
), new CodeExpression[] {Str(relation.RelationName), parentColCreate, childColCreate,Primitive(false)})
fx\src\data\System\Data\ConstraintCollection.cs (2)
352
DataRelation
rel = Table.ChildRelations[i];
360
DataRelation
rel = Table.ParentRelations[i];
fx\src\data\System\Data\DataColumn.cs (4)
1519
internal
DataRelation
FindParentRelation() {
1520
DataRelation
[] parentRelations = new
DataRelation
[Table.ParentRelations.Count];
1524
DataRelation
relation = parentRelations[i];
fx\src\data\System\Data\DataRelation.cs (10)
88
/// Initializes a new instance of the <see cref='System.Data.
DataRelation
'/> class using the specified name,
98
/// Initializes a new instance of the <see cref='System.Data.
DataRelation
'/> class using the specified name, parent, and child columns, and
116
/// Initializes a new instance of the <see cref='System.Data.
DataRelation
'/> class using the specified name
126
/// Initializes a new instance of the <see cref='System.Data.
DataRelation
'/> class using the specified name, matched arrays of parent
405
foreach(
DataRelation
rel in ChildTable.ParentRelations) {
438
DataRelation
[] relations = list[i].NestedParentRelations;
439
foreach(
DataRelation
rel in relations) {
528
foreach(
DataRelation
rel in ChildTable.ParentRelations) {
695
internal
DataRelation
Clone(DataSet destination) {
710
DataRelation
clone = new DataRelation(relationName, parentColumns, childColumns, false);
fx\src\data\System\Data\DataRelationCollection.cs (54)
30
private
DataRelation
inTransition = null;
49
public abstract
DataRelation
this[int index] {
56
public abstract
DataRelation
this[string name] {
64
public void Add(
DataRelation
relation) {
88
public virtual void AddRange(
DataRelation
[] relations) {
90
foreach(
DataRelation
relation in relations) {
100
/// Creates a <see cref='System.Data.
DataRelation
'/> with the
104
public virtual
DataRelation
Add(string name, DataColumn[] parentColumns, DataColumn[] childColumns) {
105
DataRelation
relation = new DataRelation(name, parentColumns, childColumns);
118
public virtual
DataRelation
Add(string name, DataColumn[] parentColumns, DataColumn[] childColumns, bool createConstraints) {
119
DataRelation
relation = new DataRelation(name, parentColumns, childColumns, createConstraints);
131
public virtual
DataRelation
Add(DataColumn[] parentColumns, DataColumn[] childColumns) {
132
DataRelation
relation = new DataRelation(null, parentColumns, childColumns);
146
public virtual
DataRelation
Add(string name, DataColumn parentColumn, DataColumn childColumn) {
147
DataRelation
relation = new DataRelation(name, parentColumn, childColumn);
161
public virtual
DataRelation
Add(string name, DataColumn parentColumn, DataColumn childColumn, bool createConstraints) {
162
DataRelation
relation = new DataRelation(name, parentColumn, childColumn, createConstraints);
174
public virtual
DataRelation
Add(DataColumn parentColumn, DataColumn childColumn) {
175
DataRelation
relation = new DataRelation(null, parentColumn, childColumn);
187
protected virtual void AddCore(
DataRelation
relation) {
270
public void CopyTo(
DataRelation
[] array, int index) {
279
array[index + i] = (
DataRelation
)alist[i];
285
/// Returns the index of a specified <see cref='System.Data.
DataRelation
'/>.
288
public virtual int IndexOf(
DataRelation
relation) {
291
if (relation == (
DataRelation
) List[i]) {
316
DataRelation
relation = (
DataRelation
) List[i];
390
public virtual bool CanRemove(
DataRelation
relation) {
406
public void Remove(
DataRelation
relation) {
427
DataRelation
dr = this[index];
442
DataRelation
dr = this[name];
455
protected virtual void RemoveCore(
DataRelation
relation) {
518
public override
DataRelation
this[int index] {
521
return (
DataRelation
)relations[index];
527
public override
DataRelation
this[string name] {
533
return (index < 0) ? null : (
DataRelation
)List[index];
555
private void AddCache(
DataRelation
relation) {
562
protected override void AddCore(
DataRelation
relation) {
577
public override bool CanRemove(
DataRelation
relation) {
593
private void RemoveCache(
DataRelation
relation) {
606
protected override void RemoveCore(
DataRelation
relation) {
626
private
DataRelation
[] delayLoadingRelations = null;
641
public override void AddRange(
DataRelation
[] relations) {
648
foreach(
DataRelation
relation in relations) {
667
public override
DataRelation
this[int index] {
670
return (
DataRelation
)relations[index];
676
public override
DataRelation
this[string name] {
682
return (index < 0) ? null : (
DataRelation
)List[index];
686
protected override void AddCore(
DataRelation
relation) {
704
if (childKey.ColumnsEqual(((
DataRelation
)relations[i]).ChildKey)) {
705
if (relation.ParentKey.ColumnsEqual(((
DataRelation
)relations[i]).ParentKey))
744
protected override void RemoveCore(
DataRelation
relation) {
778
DataRelation
rel;
804
DataRelation
newRelation = new DataRelation(rel.relationName, parents, childs, false);
fx\src\data\System\Data\DataRelationPropertyDescriptor.cs (3)
18
DataRelation
relation;
20
internal
DataRelation
Relation {
26
internal DataRelationPropertyDescriptor(
DataRelation
dataRelation) : base(dataRelation.RelationName, null) {
fx\src\data\System\Data\DataRow.cs (24)
206
internal void CheckForLoops(
DataRelation
rel){
227
DataRelation
[] nestedParentRelations = _table.NestedParentRelations;
228
foreach(
DataRelation
rel in nestedParentRelations) {
749
/// specified <see cref='System.Data.
DataRelation
'/>
752
public DataRow[] GetChildRows(
DataRelation
relation) {
757
/// <para>Gets the child rows of this <see cref='System.Data.DataRow'/> using the specified <see cref='System.Data.
DataRelation
'/> and the specified <see cref='System.Data.DataRowVersion'/></para>
759
public DataRow[] GetChildRows(
DataRelation
relation, DataRowVersion version) {
770
return
DataRelation
.GetChildRows(relation.ParentKey, relation.ChildKey, this, version);
790
/// <para>Gets the parent row of this <see cref='System.Data.DataRow'/> using the specified <see cref='System.Data.
DataRelation
'/> .</para>
792
public DataRow GetParentRow(
DataRelation
relation) {
798
/// using the specified <see cref='System.Data.
DataRelation
'/> and <see cref='System.Data.DataRowVersion'/>.</para>
800
public DataRow GetParentRow(
DataRelation
relation, DataRowVersion version) {
813
return
DataRelation
.GetParentRow(relation.ParentKey, relation.ChildKey, this, version);
819
DataRelation
[] nestedParentRelations = _table.NestedParentRelations;
820
foreach(
DataRelation
rel in nestedParentRelations) {
851
/// Gets the parent rows of this <see cref='System.Data.DataRow'/> using the specified <see cref='System.Data.
DataRelation
'/> .
854
public DataRow[] GetParentRows(
DataRelation
relation) {
860
/// Gets the parent rows of this <see cref='System.Data.DataRow'/> using the specified <see cref='System.Data.
DataRelation
'/> .
863
public DataRow[] GetParentRows(
DataRelation
relation, DataRowVersion version) {
876
return
DataRelation
.GetParentRows(relation.ParentKey, relation.ChildKey, this, version);
1165
foreach (
DataRelation
relation in _table.ParentRelations) {
1193
public void SetParentRow(DataRow parentRow,
DataRelation
relation) {
1227
foreach (
DataRelation
relation in _table.ParentRelations)
1231
internal void SetParentRowToDBNull(
DataRelation
relation) {
fx\src\data\System\Data\DataRowView.cs (6)
169
/// with the specified <see cref="System.Data.
DataRelation
"/>.
171
/// <param name="relation">Specified <see cref="System.Data.
DataRelation
"/>.</param>
173
public DataView CreateChildView(
DataRelation
relation, bool followParent) {
192
public DataView CreateChildView(
DataRelation
relation) {
197
/// <summary><see cref="CreateChildView(
DataRelation
)"/></summary>
198
/// <param name="relationName">Specified <see cref="System.Data.
DataRelation
"/> name.</param>
fx\src\data\System\Data\DataSet.cs (10)
449
foreach (
DataRelation
rel in Relations) {
503
DataRelation
rel = new DataRelation(relationName, parentkeyColumns, childkeyColumns, false);
1147
DataRelation
rel = rels[i].Clone(ds);
2286
DataRelation
[] nestedParentRelations = t.NestedParentRelations;
2287
foreach (
DataRelation
rel in nestedParentRelations) {
2290
foreach (
DataRelation
rel2 in nestedParentRelations) {
2929
protected virtual void OnRemoveRelation(
DataRelation
relation)
2934
internal void OnRemoveRelationHack(
DataRelation
relation)
3033
DataRelation
relation = null;
3063
DataRelation
relation = null;
fx\src\data\System\Data\DataTable.cs (33)
135
private static readonly
DataRelation
[] EmptyArrayDataRelation = new
DataRelation
[0];
136
private
DataRelation
[] _nestedParentRelations = EmptyArrayDataRelation;
989
foreach(
DataRelation
rel in ParentRelations) {
1465
internal
DataRelation
[] NestedParentRelations {
1491
private
DataRelation
[] FindNestedParentRelations() {
1492
List<
DataRelation
> nestedParents = null;
1493
foreach(
DataRelation
relation in this.ParentRelations) {
1496
nestedParents = new List<
DataRelation
>();
1511
foreach(
DataRelation
relation in this.ParentRelations) {
1675
DataRelation
[] nestedRelations = NestedParentRelations;
1680
foreach(
DataRelation
rel in nestedRelations) {
1688
foreach(
DataRelation
rel in nestedRelations) {
1728
DataRelation
[] nestedRelations = NestedParentRelations;
1731
DataRelation
rel = nestedRelations[i];
1805
foreach (
DataRelation
rel in ChildRelations)
1817
foreach(
DataRelation
rel in ChildRelations) {
1833
foreach(
DataRelation
rel in ParentRelations){
1851
foreach (
DataRelation
rel in ChildRelations)
2198
foreach(
DataRelation
r in sourceTable.ChildRelations ) {
3911
DataRelation
relation = ParentRelations[j];
3919
DataRelation
relation = ChildRelations[j];
5653
DataRelation
[] relations = tableList[i].NestedParentRelations;
5654
foreach(
DataRelation
rel in relations) {
5657
foreach (
DataRelation
rel2 in relations) {
5775
List<
DataRelation
> relationList = new List<
DataRelation
>();
5834
foreach(
DataRelation
rel in relationList) {
5868
foreach(
DataRelation
r in currentTable.ChildRelations ) {
5875
private void CreateRelationList(List<DataTable> tableList, List<
DataRelation
> relationList) {
5877
foreach(
DataRelation
r in table.ChildRelations) {
6376
DataRelation
relation = ParentRelations[j];
6393
DataRelation
relation = ChildRelations[j];
fx\src\data\System\Data\DataView.cs (4)
1636
e.Action == CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataRelationPropertyDescriptor((System.Data.
DataRelation
)e.Element)) :
1638
e.Action == CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataRelationPropertyDescriptor((System.Data.
DataRelation
)e.Element)) :
1646
e.Action == CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataRelationPropertyDescriptor((System.Data.
DataRelation
)e.Element)) :
1648
e.Action == CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataRelationPropertyDescriptor((System.Data.
DataRelation
)e.Element)) :
fx\src\data\System\Data\DataViewManager.cs (2)
376
e.Action == CollectionChangeAction.Add ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorAdded, new DataRelationPropertyDescriptor((System.Data.
DataRelation
)e.Element)) :
378
e.Action == CollectionChangeAction.Remove ? new ListChangedEventArgs(ListChangedType.PropertyDescriptorDeleted, new DataRelationPropertyDescriptor((System.Data.
DataRelation
)e.Element)) :
fx\src\data\System\Data\Filter\AggregateNode.cs (2)
38
private
DataRelation
relation;
131
internal static void Bind(
DataRelation
relation, List<DataColumn> list)
fx\src\data\System\Data\Filter\LookupNode.cs (1)
21
private
DataRelation
relation;
fx\src\data\System\Data\ForeignKeyConstraint.cs (3)
461
if (
DataRelation
.GetChildRows(this.ParentKey, this.ChildKey, row, DataRowVersion.Default).Length > 0) {
512
DataRow parentRow =
DataRelation
.GetParentRow(this.ParentKey, this.ChildKey, childRow, version);
809
internal
DataRelation
FindParentRelation () {
fx\src\data\System\Data\Merger.cs (2)
432
private void MergeRelation(
DataRelation
relation) {
436
DataRelation
destRelation = null;
fx\src\data\System\Data\ProviderBase\SchemaMapping.cs (1)
1033
DataRelation
relation = new DataRelation(name, new DataColumn[] { parentChapterColumn }, new DataColumn[] { chapterColumn }, false); // MDAC 71878
fx\src\data\System\Data\RelationshipConverter.cs (5)
49
if (destinationType == typeof(InstanceDescriptor) && value is
DataRelation
) {
50
DataRelation
rel = (
DataRelation
) value;
55
ctor = typeof(
DataRelation
).GetConstructor(new Type[] { typeof(string) /*relationName*/, typeof(string) /*parentTableName*/, typeof(string) /*childTableName */,
61
ctor = typeof(
DataRelation
).GetConstructor(new Type[] { typeof(string)/*relationName*/, typeof(string)/*parentTableName*/, typeof(string)/*parentTableNamespace*/,
fx\src\data\System\Data\XDRSchema.cs (1)
585
DataRelation
relation = null;
fx\src\data\System\Data\XMLDiffLoader.cs (1)
46
foreach(
DataRelation
r in dt.ChildRelations ) {
fx\src\data\System\Data\xmlsaver.cs (23)
91
if (type == typeof(
DataRelation
)) {
109
if (!((instance is DataSet) || (instance is DataTable) || (instance is DataColumn) || (instance is
DataRelation
))) {
416
foreach(
DataRelation
r in dt.ChildRelations ) {
425
foreach(
DataRelation
r in dt.ChildRelations ) {
426
if (! _relations.Contains((
DataRelation
)r)) {
427
_relations.Add((
DataRelation
)r);
654
DataRelation
[] rels = new
DataRelation
[0];
656
rels = new
DataRelation
[ds.Relations.Count];
663
rels = new
DataRelation
[_relations.Count];
671
DataRelation
rel = rels[i];
971
internal XmlElement HandleRelation(
DataRelation
rel, XmlDocument dc) {
1181
DataRelation
[] nestedParentRelations = table.NestedParentRelations;
1392
foreach (
DataRelation
rel in col.Table.ParentRelations) {
1413
internal static bool AutoGenerated(
DataRelation
rel) {
1438
DataRelation
rel = fk.FindParentRelation();
1488
DataRelation
[] nestedParentRelations = _table.NestedParentRelations;
1790
DataRelation
rel = foreign.FindParentRelation();
1861
AddExtendedProperties(rel.extendedProperties, constraint, typeof(
DataRelation
));
1999
foreach(
DataRelation
r in dt.ChildRelations ) {
2394
foreach(
DataRelation
r in dt.ChildRelations ) {
2528
foreach(
DataRelation
r in row.Table.ChildRelations ) {
2671
foreach(
DataRelation
dr in GetNestedChildRelations(row) ) {
fx\src\data\System\Data\XMLSchema.cs (6)
301
if ((instance is
DataRelation
) && (propName.StartsWith(Keywords.MSD_REL_PREFIX, StringComparison.Ordinal))) {
304
else if ((instance is
DataRelation
) && (propName.StartsWith(Keywords.MSD_FK_PREFIX, StringComparison.Ordinal))) {
376
DataRelation
relation;
808
DataRelation
relation = null;
1135
DataRelation
relation = null;
1474
DataRelation
relation = null;
fx\src\data\System\Data\XmlToDatasetMap.cs (3)
289
foreach(
DataRelation
r in t.ChildRelations ) { // Do we have a child tables ?
358
foreach(
DataRelation
r in t.ChildRelations ) { // Add nested tables information
392
foreach(
DataRelation
childRelations in ((DataTable)tableList[nCounter]).ChildRelations) {
fx\src\data\System\NewXml\XmlDataDocument.cs (17)
265
foreach (
DataRelation
rel in dataSet.Relations ) {
505
foreach(
DataRelation
dr in GetNestedChildRelations(row) ) {
709
foreach(
DataRelation
r in row.Table.ChildRelations ) {
718
DataRelation
relation = GetNestedParentRelation(row);
724
private static
DataRelation
GetNestedParentRelation( DataRow row ) {
725
DataRelation
[] relations = row.Table.NestedParentRelations;
1407
DataRelation
relation = GetNestedParentRelation(row);
1526
DataColumn FindAssociatedParentColumn(
DataRelation
relation, DataColumn childCol ) {
1560
DataRelation
relation = GetNestedParentRelation(child);
1984
DataRelation
rel = (
DataRelation
)(args.Element);
1991
foreach (
DataRelation
relTemp in (DataRelationCollection)oRelationsCollection ) {
2381
DataRelation
rel = GetNestedParentRelation( childRow );
2611
DataRelation
[] relations = childRow.Table.NestedParentRelations;
2771
foreach(
DataRelation
r in tableList[readPos].ChildRelations) {
2789
foreach(
DataRelation
r in rootTable.ChildRelations) {
2801
foreach(
DataRelation
r in tableList[counter].ChildRelations) {