Inheritance: IDataRecord, IDataRecordRemoved
コード例 #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);
     }
 }
コード例 #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);
        }
コード例 #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;
        }
コード例 #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);
            }
            

        }