D
Dan Holmes
in a follow up to the thread "a better way for user searches" the
"search" method signature is this:
public List<ProductInfo> List(ProductInfo productInfo1, ProductInfo
productInfo2)
That produces problems in determining if the user is wanting to check
the column for nulls or doesn't want to include the column in the search
criteria.
What if i changed it to this?
public List<ProductInfo> List(System.CodeDom.CodeExpression expression)
based on what the user chooses on the expression is built (with all the
"and"s and "or"s). I would use reflection on ProductInfo to determine
the property names.
It is then turned into SQL and executed. This app n-tier and remoting
is involved if that matters.
Is this a good idea? Anyone tried this?
dan
"search" method signature is this:
public List<ProductInfo> List(ProductInfo productInfo1, ProductInfo
productInfo2)
That produces problems in determining if the user is wanting to check
the column for nulls or doesn't want to include the column in the search
criteria.
What if i changed it to this?
public List<ProductInfo> List(System.CodeDom.CodeExpression expression)
based on what the user chooses on the expression is built (with all the
"and"s and "or"s). I would use reflection on ProductInfo to determine
the property names.
It is then turned into SQL and executed. This app n-tier and remoting
is involved if that matters.
Is this a good idea? Anyone tried this?
dan