Hi all !
First, thanks for this wonderful that is .NetTiers ! It saved my days of work !
I have a question about the generated select methods and their use in strongly type datasources. I understood that Find is more secure than GetPaged (or is it GetAll) because it uses prepared statements and thus is not vulnerable to SQL injection, but is there any other difference I should be aware of ?
Basically, I need paging, sorting and filtering. The first being quite common, I'll explain the two other requirements :
- Sorting : I need to sort my data on table columns (should be straightforward), as well as on "external" data, ie on the column of another table linked by a foreign key. These properties are deeploaded by the datasource, if this helps...
- Filtering : I need to filter my resuls according to the value of a bunch of dropdown lists (ie column X between value 1 and value 2, column Y = value 3, etc.), but this should be done on selecting, and not after selection (ie I dont' want to register onSelected and filter my result)
Could you please give me pointer on which select method I should use according to my requirements (I'd say Find, because it's secure ?) and how to implement external sorting and filtering ?
Thanks in advance