public void EnsureRelation(IClassifiable entity, MetricsEntity metrics) { if (!relationService.IsRelated(entity, metrics, relationNode)) { relationService.RemoveRelations(metrics, relationNode); relationService.AddRelation(entity, metrics, RelationDirection.Forward, relationNode); } }
public bool IsClassified(IClassifiable classifiable, TaxonomyNode node) { return(relationSrv.IsRelated(classifiable, node)); }