Esempio n. 1
0
        protected static GmatClubTest.Data.QuestionTypes list_types_(System.Data.SqlClient.SqlConnection conn)
        {
            GmatClubTest.Data.QuestionTypes set = new GmatClubTest.Data.QuestionTypes();

            SqlDataAdapter ad = new SqlDataAdapter("select * from QuestionTypes;", conn);

            ad.Fill(set._QuestionTypes);
            return(set);
        }
        public static System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(System.Xml.Schema.XmlSchemaSet xs)
        {
            QuestionTypes ds = new QuestionTypes();

            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);
        }