protected override void RemoveCore(DataRelation relation)
{
if (_fParentCollection)
{
if (relation.ChildTable != _table)
{
throw ExceptionBuilder.ChildTableMismatch();
}
}
else
{
if (relation.ParentTable != _table)
{
throw ExceptionBuilder.ParentTableMismatch();
}
}
GetDataSet().Relations.Remove(relation);
RemoveCache(relation);
}
}