コード例 #1
0
 public void EnsureRelation(IClassifiable entity, MetricsEntity metrics)
 {
     if (!relationService.IsRelated(entity, metrics, relationNode))
     {
         relationService.RemoveRelations(metrics, relationNode);
         relationService.AddRelation(entity, metrics, RelationDirection.Forward, relationNode);
     }
 }
コード例 #2
0
 public bool IsClassified(IClassifiable classifiable, TaxonomyNode node)
 {
     return(relationSrv.IsRelated(classifiable, node));
 }