Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ GetChildRows() [2/4]

DataRow[] System.Data.DataRow.GetChildRows ( DataRelation? relation,
DataRowVersion version )
inline

Definition at line 687 of file DataRow.cs.

688 {
689 if (relation == null)
690 {
691 return _table.NewRowArray(0);
692 }
693 if (relation.DataSet != _table.DataSet)
694 {
695 throw ExceptionBuilder.RowNotInTheDataSet();
696 }
697 if (relation.ParentKey.Table != _table)
698 {
699 throw ExceptionBuilder.RelationForeignTable(relation.ParentTable.TableName, _table.TableName);
700 }
701 return DataRelation.GetChildRows(relation.ParentKey, relation.ChildKey, this, version);
702 }
DataRow[] GetChildRows(string? relationName)
Definition DataRow.cs:672
readonly DataTable _table
Definition DataRow.cs:12
DataRow[] NewRowArray(int size)

References System.Data.DataRow._table, System.Data.DataTable.DataSet, System.Xml.Dictionary, System.Data.DataRelation.GetChildRows(), System.Data.DataTable.NewRowArray(), System.Data.ExceptionBuilder.RelationForeignTable(), System.Data.ExceptionBuilder.RowNotInTheDataSet(), and System.Data.DataTable.TableName.