private void RemoveCache(DataRelation relation)
{
for (int i = 0; i < _relations.Count; i++)
{
if (relation == _relations[i])
{
_relations.RemoveAt(i);
if (!_fParentCollection)
{
_table.UpdatePropertyDescriptorCollectionCache();
}
return;
}
}
throw ExceptionBuilder.RelationDoesNotExist();
}