C# 如何在sqlite和vb.net或c中存储图形#
我有一个2D图形,它是用一个实验的数据生成的,我想存储几个实验的所有图形和数据 我在考虑用一张像这样的桌子C# 如何在sqlite和vb.net或c中存储图形#,c#,graph,vb.net-2010,C#,Graph,Vb.net 2010,我有一个2D图形,它是用一个实验的数据生成的,我想存储几个实验的所有图形和数据 我在考虑用一张像这样的桌子 id | value | n -------------------------------------------------------------------------------- 1 | {"(0,0)","(125,100)","(200,200)
id | value | n
--------------------------------------------------------------------------------
1 | {"(0,0)","(125,100)","(200,200)","(297,300)","(4,400)","(5,500)"} | 6
甚至
但我不认为这是一个好办法,最好的办法是什么?我建议采用以下结构: 到期表
id | Title | Descirption | .... more info
------------------------------------------------------------------
10 Experiment title some description
20 Experiment title some description
30 Experiment title some description
不稳定
id| Name | Description | ExperimentID ....
------------------------------------------
1 text more text... 10
2 text more text... 10
3 text more text... 10
桌面
id| SourceNode| TargetNode
----------------------------
1 1 2
2 1 3
3 3 2
4 3 1
如果需要为每个节点存储基于像素的位置,然后将(x,y)添加到节点表中…我认为这个问题应该在CodeReview上。
id| SourceNode| TargetNode
----------------------------
1 1 2
2 1 3
3 3 2
4 3 1