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

◆ GetParentRow() [2/4]

DataRow? System.Data.DataRow.GetParentRow ( DataRelation? relation,
DataRowVersion version )
inline

Definition at line 729 of file DataRow.cs.

730 {
731 if (relation == null)
732 {
733 return null;
734 }
735 if (relation.DataSet != _table.DataSet)
736 {
737 throw ExceptionBuilder.RelationForeignRow();
738 }
739 if (relation.ChildKey.Table != _table)
740 {
741 throw ExceptionBuilder.GetParentRowTableMismatch(relation.ChildTable.TableName, _table.TableName);
742 }
743 return DataRelation.GetParentRow(relation.ParentKey, relation.ChildKey, this, version);
744 }
readonly DataTable _table
Definition DataRow.cs:12

References System.Data.DataRow._table, System.Data.DataTable.DataSet, System.Xml.Dictionary, System.Data.DataRelation.GetParentRow(), System.Data.ExceptionBuilder.GetParentRowTableMismatch(), System.Data.ExceptionBuilder.RelationForeignRow(), and System.Data.DataTable.TableName.