/// <summary> /// Executes the data set. /// </summary> /// <param name="commandType">Type of the command.</param> /// <param name="commandText">The command text.</param> /// <returns></returns> public override DataSet ExecuteDataSet(CommandType commandType, string commandText) { WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices(); proxy.Url = this.url; return proxy.ExecuteDataSet((WsProxy.CommandType)Enum.Parse(typeof(WsProxy.CommandType), commandType.ToString(), false), commandText); }
/// <summary> /// Executes the data set. /// </summary> /// <param name="storedProcedureName">Name of the stored procedure.</param> /// <param name="parameterValues">The parameter values.</param> /// <returns></returns> public override DataSet ExecuteDataSet(string storedProcedureName, params object[] parameterValues) { WsProxy.AdventureWorksServices proxy = new WsProxy.AdventureWorksServices(); proxy.Url = this.url; return proxy.ExecuteDataSet(storedProcedureName, parameterValues); }