# DataRelationInfo Class

> The DataRelationInfo class provides all necessary information about parent-child-relations between data tables.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.DocumentServer.DataSources`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.DocumentServer.DataSources > DataRelationInfo Class
- **615 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datarelationinfo/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datarelationinfo/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datarelationinfo/llms-full.txt

---

### Description

The DataRelationInfo class provides all necessary information about parent-child-relations between data tables.

### Syntax

```csharp
public class DataRelationInfo
```

```vbnet
Public Class DataRelationInfo
```

### Examples

The following example includes the relation name value from a Data Relation Info object in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Relation Name: {dataRelationInfo.RelationName}");
Console.WriteLine("Data Relation Info is ready for use.");
```

```vbnet
Console.WriteLine($"Relation Name: {dataRelationInfo.RelationName}")
Console.WriteLine("Data Relation Info is ready for use.")
```

---

## In This Section

- [DataRelationInfo.ChildColumnName Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datarelationinfo/childcolumnname-property/llms-full.txt): Gets the name of the child column which is part of this data relation.
- [DataRelationInfo.ChildTableName Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datarelationinfo/childtablename-property/llms-full.txt): Gets the name of the child table which is part of this data relation.
- [DataRelationInfo.ParentColumnName Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datarelationinfo/parentcolumnname-property/llms-full.txt): Gets the name of the parent column which is part of this data relation.
- [DataRelationInfo.ParentTableName Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datarelationinfo/parenttablename-property/llms-full.txt): Gets the name of the parent table which is part of this data relation.
- [DataRelationInfo.RelationName Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datarelationinfo/relationname-property/llms-full.txt): Gets the data relation name if one was defined.

---

## Nearby

- **Previous:** [DataColumnInfoCollection.Item Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datacolumninfocollection/item-property/llms-full.txt)
- **Next:** [DataRelationInfo.ChildColumnName Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-datasources/datarelationinfo/childcolumnname-property/llms-full.txt)
