protected override ITunnelResultSet GetResult(CommandBehavior behaviour, GetResultCaller caller) { int limit = (behaviour & CommandBehavior.SchemaOnly) != 0 ? 0 : -1; Dictionary <string, string> pars = new Dictionary <string, string>(); foreach (TunnelParameter par in Parameters) { pars[par.ParameterName] = par.Value == null ? null : par.Value.ToString(); } WebResultSet res = WebResultSet.CreateRequest((PtunConnection)Connection, CommandText, limit, pars); return(res); }
protected override ITunnelResultSet GetResult(CommandBehavior behaviour, GetResultCaller caller) { int limit = (behaviour & CommandBehavior.SchemaOnly) != 0 ? 0 : -1; return(((StunConnection)Connection).ExecuteResultSet(CommandText)); }
protected abstract ITunnelResultSet GetResult(CommandBehavior behaviour, GetResultCaller caller);