public MetricsEntity CreateMetrics(string name, IClassifiable entity, string descr) { MetricsEntity metrics; metrics = new MetricsEntity(name, descr ?? String.Format("for {0}({1})", entity.ObjectName, entity.Id)); metricsRepo.Save(metrics); relationService.AddRelation(entity, metrics, RelationDirection.Forward, relationNode); return(metrics); }
public void Classify(IClassifiable classifiable, TaxonomyNode node) { relationSrv.AddRelation(classifiable, node, RelationDirection.Both); }