Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetParentRows() [2/4]

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

Definition at line 783 of file DataRow.cs.

784 {
785 if (relation == null)
786 {
787 return _table.NewRowArray(0);
788 }
789 if (relation.DataSet != _table.DataSet)
790 {
791 throw ExceptionBuilder.RowNotInTheDataSet();
792 }
793 if (relation.ChildKey.Table != _table)
794 {
795 throw ExceptionBuilder.GetParentRowTableMismatch(relation.ChildTable.TableName, _table.TableName);
796 }
797 return DataRelation.GetParentRows(relation.ParentKey, relation.ChildKey, this, version);
798 }
DataRow[] GetParentRows(string? relationName)
Definition DataRow.cs:768
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.GetParentRows(), System.Data.ExceptionBuilder.GetParentRowTableMismatch(), System.Data.DataTable.NewRowArray(), System.Data.ExceptionBuilder.RowNotInTheDataSet(), and System.Data.DataTable.TableName.