|
We've developed ad-hoc query for our application using DetachedCriteria and we'd like to now support saving and editing those criteria later.
The obvious approach would be to persist the various conditions that the user has selected ("FirstName", "Equals", "John" and "Age", "GreaterThan", 18...) but before we go to far, we wanted to see if the DetachedCriteria we've build can be used instead.
I know that DetachedCriteria can be serialized, but what I've been unable to figure out is how to later enumerate over the expressions, display them in the UI and support the user changing and editing those expressions.
Does anyone have any advice on how feasible this is?
|