public System.Data.DataSet ProcessDataSet(System.Data.DataSet data) { GeneratedContracts.ProcessDataSetRequest inValue = new GeneratedContracts.ProcessDataSetRequest(); inValue.data = data; GeneratedContracts.ProcessDataSetResponse retVal = ((GeneratedContracts.ICollections)(this)).ProcessDataSet(inValue); return(retVal.ProcessDataSetResult); }
private GeneratedContracts.ProcessDataSetResponse ProcessDataSet() { GeneratedContracts.ProcessDataSetRequest request = new GeneratedContracts.ProcessDataSetRequest(); try { request.data = new System.Data.DataSet(); request.data.Locale = System.Globalization.CultureInfo.InvariantCulture; request.data.Tables.Add(new System.Data.DataTable("table1", "urn:table1")); request.data.Tables[0].Locale = System.Globalization.CultureInfo.InvariantCulture; request.data.Tables[0].Columns.Add("col1_1", typeof(int)); request.data.Tables[0].Columns.Add("col1_2", typeof(string)); request.data.Tables[0].Rows.Add(1, "hello1"); request.data.Tables[0].Rows.Add(2, "hello2"); request.data.Tables[0].Rows.Add(System.DBNull.Value, System.DBNull.Value); request.data.Tables.Add(new System.Data.DataTable("table2", "urn:table2")); request.data.Tables[1].Locale = System.Globalization.CultureInfo.InvariantCulture; request.data.Tables[1].Columns.Add("col2_1", typeof(bool)); request.data.Tables[1].Columns.Add("col2_2", typeof(decimal)); request.data.Tables[1].Rows.Add(true, 1.0m); request.data.Tables[1].Rows.Add(false, 99.0m); this.CustomiseProcessDataSet(request); _testContext.BeginTimer("GeneratedSampleTest_ProcessDataSet"); try { return(dataSetsClient.ProcessDataSet(request)); } finally { _testContext.EndTimer("GeneratedSampleTest_ProcessDataSet"); } } finally { request.data.Dispose(); } }
GeneratedContracts.ProcessDataSetResponse GeneratedContracts.ICollections.ProcessDataSet(GeneratedContracts.ProcessDataSetRequest request) { return(base.Channel.ProcessDataSet(request)); }
private void CustomiseProcessDataSet(GeneratedContracts.ProcessDataSetRequest request) { }