Creating DemoNet.data file
Posted: Wed Jan 25, 2017 3:13 pm
I am evaluating Stimulsoft, and would like to be capable of producing data just like the Demo dataset in DemoNet.data. Can you provide me with example code that you used to create and then write this file. Is there a DLL that has I can use for this process?
Note: When I export data straight from a DataSet (using WriteXml() and WriteXmlSchema()) it does not provide the XML structures (StiDataSet, Reduction, TablesInfo, Contents, RelationsInfo, TablesChildRelations> I am seeing in DemoNet.data.
Example:
<StiDataSet name="Demo" version="1.0">
<Reduction>
<Categories>i0</Categories>
<CategoryID>i1</CategoryID>
...
</Reduction>
<TablesInfo>
<i0>
<i1>System.Int32</i1>
<i2>System.String</i2>
<i3>System.String</i3>
<i4>System.Byte[]</i4>
</i0>
...
</TablesInfo>
<Contents>
<i0>
<i1>1</i1>
<i2>Beverages</i2>
<i3>Soft drinks, coffees, teas, beers, and ales</i3>
...
</i0>
...
</Contents>
<RelationsInfo>
<Relation>
<RelationName>i5</RelationName>
<ParentTable>i0</ParentTable>
<ChildTable>i54</ChildTable>
<ParentColumns>
<i1 />
</ParentColumns>
<ChildColumns>
<i1 />
</ChildColumns>
</Relation>
...
</RelationsInfo>
<TablesChildRelations>
<i0>
<i5 />
</i0>
...
</TablesChildRelations>
</StiDataSet>
Note: When I export data straight from a DataSet (using WriteXml() and WriteXmlSchema()) it does not provide the XML structures (StiDataSet, Reduction, TablesInfo, Contents, RelationsInfo, TablesChildRelations> I am seeing in DemoNet.data.
Example:
<StiDataSet name="Demo" version="1.0">
<Reduction>
<Categories>i0</Categories>
<CategoryID>i1</CategoryID>
...
</Reduction>
<TablesInfo>
<i0>
<i1>System.Int32</i1>
<i2>System.String</i2>
<i3>System.String</i3>
<i4>System.Byte[]</i4>
</i0>
...
</TablesInfo>
<Contents>
<i0>
<i1>1</i1>
<i2>Beverages</i2>
<i3>Soft drinks, coffees, teas, beers, and ales</i3>
...
</i0>
...
</Contents>
<RelationsInfo>
<Relation>
<RelationName>i5</RelationName>
<ParentTable>i0</ParentTable>
<ChildTable>i54</ChildTable>
<ParentColumns>
<i1 />
</ParentColumns>
<ChildColumns>
<i1 />
</ChildColumns>
</Relation>
...
</RelationsInfo>
<TablesChildRelations>
<i0>
<i5 />
</i0>
...
</TablesChildRelations>
</StiDataSet>