예제 #1
0
 public static Parameters Parameters(Definitions definitions, string resource)
 {
     ParameterFactory factory = new ParameterFactory(definitions, resource);
     Parameters parameters = new Parameters();
     parameters += factory.ResourceParameter();
     return parameters;
 }
예제 #2
0
 public static Search.Mongo.Parameters Parameters(Definitions definitions, string resource, IEnumerable<Criterium> criteria)
 {
     ParameterFactory factory = new ParameterFactory(definitions, resource);
     Parameters parameters = new Parameters();
     parameters += factory.ResourceParameter();
     parameters += factory.CreateParameters(resource, criteria);
     return parameters;
 }
예제 #3
0
 public static Parameters Parameters(Definitions definitions, string resource, IEnumerable<Tuple<string, string>> query)
 {
     ParameterFactory factory = new ParameterFactory(definitions, resource);
     Parameters parameters = new Parameters();
     parameters += factory.ResourceParameter();
     parameters += factory.CreateParameters(resource, query);
     return parameters;
 }
예제 #4
0
 public static Parameters Parameters(Definitions definitions, string resource, string query)
 {
     ParameterFactory factory = new ParameterFactory(definitions, resource);
     Parameters parameters = new Parameters();
     parameters += factory.ResourceParameter();
     parameters += factory.CreateParametersFromHttpQuery(resource, query);
     return parameters;
 }