Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public void Classify(IClassifiable classifiable, TaxonomyNode node)
 {
     relationSrv.AddRelation(classifiable, node, RelationDirection.Both);
 }