static private GetParentRows ( |
||
parentKey | ||
childKey | ||
childRow | ||
version | DataRowVersion | |
Résultat | System.Data.DataRow[] |
public DataRow[] GetParentRows(DataRelation relation, DataRowVersion version) { if (relation == null) { return(this._table.NewRowArray(0)); } if (relation.DataSet != this._table.DataSet) { throw ExceptionBuilder.RowNotInTheDataSet(); } if (relation.ChildKey.Table != this._table) { throw ExceptionBuilder.GetParentRowTableMismatch(relation.ChildTable.TableName, this._table.TableName); } return(DataRelation.GetParentRows(relation.ParentKey, relation.ChildKey, this, version)); }