Example #1
0
        static void Main(string[] args)
        {
            TestDataSet testDS = new TestDataSet();

            TestDataSetTableAdapters.DemoTableAdapter tableAdapter =
                new TestDataSetTableAdapters.DemoTableAdapter();
            tableAdapter.Fill(testDS.Demo);

            TestDataSet.DemoRow demoRow =
                (TestDataSet.DemoRow)testDS.Demo.Rows[0];
            Console.WriteLine(demoRow.DemoValue);
        }
Example #2
0
        public static System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(System.Xml.Schema.XmlSchemaSet xs)
        {
            TestDataSet ds = new TestDataSet();

            System.Xml.Schema.XmlSchemaComplexType type     = new System.Xml.Schema.XmlSchemaComplexType();
            System.Xml.Schema.XmlSchemaSequence    sequence = new System.Xml.Schema.XmlSchemaSequence();
            xs.Add(ds.GetSchemaSerializable());
            System.Xml.Schema.XmlSchemaAny any = new System.Xml.Schema.XmlSchemaAny();
            any.Namespace = ds.Namespace;
            sequence.Items.Add(any);
            type.Particle = sequence;
            return(type);
        }