Inheritance: IDataRecord, IDataRecordRemoved
Ejemplo n.º 1
0
 public void AddGraph(IGraphData data)
 {
     if (Graphs.All(p => p.Identifier != data.Identifier))
     {
         var workspaceGraph = new WorkspaceGraph
         {
             GraphId     = data.Identifier,
             WorkspaceId = Identifier
         };
         Repository.Add(workspaceGraph);
     }
 }
Ejemplo n.º 2
0
        public IGraphData CreateGraph(Type to)
        {
            var graph = Activator.CreateInstance(to) as IGraphData;

            graph.Name = string.Format("{0}Graph", to.Name);
            Repository.Add(graph);


            var workspaceGraph = new WorkspaceGraph
            {
                GraphId     = graph.Identifier,
                WorkspaceId = Identifier
            };

            Repository.Add(workspaceGraph);
            return(graph);
        }
Ejemplo n.º 3
0
        public IGraphData CreateGraph(Type to)
        {
            var graph = Activator.CreateInstance(to) as IGraphData;
            graph.Name = string.Format("{0}Graph", to.Name);
            Repository.Add(graph);


            var workspaceGraph = new WorkspaceGraph
            {
                GraphId = graph.Identifier,
                WorkspaceId = Identifier
            };
            Repository.Add(workspaceGraph);
            return graph;
        }
Ejemplo n.º 4
0
        public void AddGraph(IGraphData data)
        {
            if (Graphs.All(p => p.Identifier != data.Identifier))
            {
                var workspaceGraph = new WorkspaceGraph
                {
                    GraphId = data.Identifier,
                    WorkspaceId = Identifier
                };
                Repository.Add(workspaceGraph);
            }
            

        }