private ConnectionPropertiesType CreateConnectionProperties()
        {
            ConnectionPropertiesType connectionProperties = new ConnectionPropertiesType();

            connectionProperties.Items = new object[]
            {
                "",
                "SQL",
            };
            connectionProperties.ItemsElementName = new ItemsChoiceType[]
            {
                ItemsChoiceType.ConnectString,
                ItemsChoiceType.DataProvider,
            };
            return(connectionProperties);
        }
示例#2
0
        private static ConnectionPropertiesType CreateConnectionProperties()
        {
            var connectionProperties = new ConnectionPropertiesType
            {
                Items = new object[] {
                    "/* Local Connection */",
                    "System.Data.DataSet"
                },
                ItemsElementName = new[] {
                    ItemsChoiceType.ConnectString,
                    ItemsChoiceType.DataProvider,
                }
            };

            return(connectionProperties);
        }