Beispiel #1
0
        private static IQueryPart GetNotebooksByPriceQuery(PriceRange range)
        {
            MySqliteQueryPart getNotebook = new MySqliteQueryPart(CommandGetNotebooksByPriceSubQuery);

            getNotebook.AddParameter("$minPrice", range.Min.Amount);
            getNotebook.AddParameter("$maxPrice", range.Max.Amount);
            return(getNotebook);
        }
        private static IQueryPart GetProductsByPriceQuery(PriceRange range)
        {
            MySqliteQueryPart getProduct = new MySqliteQueryPart(CommandGetProductsByPriceQuery);

            getProduct.AddParameter("$minProductPrice", range.Min.Amount);
            getProduct.AddParameter("$maxProductPrice", range.Max.Amount);
            return(getProduct);
        }