Ejemplo n.º 1
0
 public static string GetProductsNames() =>
 SelectFormatter.Union(new List <string> {
     "name"
 }, new List <string> {
     "rockets"
     , "gliders"
     , "hang_gliders"
     , "helicopters"
     , "planes"
     , "other_prods"
 });
Ejemplo n.º 2
0
        public static string GetProductsNames(string id)
        {
            var query = SelectFormatter.Union(new List <string> {
                "name", "prod_id"
            }, new List <string> {
                "rockets"
                , "gliders"
                , "hang_gliders"
                , "helicopters"
                , "planes"
                , "other_prods"
            });

            return(SelectFormatter.Get("name", "(" + query + ")", id, "prod_id"));
        }