SearchProducts Method (productName, priceFrom, priceThru, sortExpression)

Design Pattern Framework 3.5

Design Pattern Framework 3.5 SearchProducts Method (productName, priceFrom, priceThru, sortExpression)
Patterns-In-Action! ApplicationDataObjects.Linq.LinqImplementationLinqProductDaoSearchProducts(String, Double, Double, String)
Searches for products given a set of criteria
Declaration Syntax
C# Visual Basic
public IList<Product> SearchProducts(
	string productName,
	double priceFrom,
	double priceThru,
	string sortExpression
)
Public Function SearchProducts ( _
	productName As String, _
	priceFrom As Double, _
	priceThru As Double, _
	sortExpression As String _
) As IList(Of Product)
Parameters
productName (String)
Product Name criterium. Could be partial.
priceFrom (Double)
Minimumn price criterium.
priceThru (Double)
Maximumn price criterium.
sortExpression (String)
Sort order in which to return product list.
Return Value
List of found products.

Assembly: DataObjects (Module: DataObjects) Version: 1.0.0.0 (1.0.0.0)