Building dynmaic queries

Topics: Data Access Application Block
Dec 8, 2010 at 9:23 PM

Hi,

could someone explain how you can build dynamic queries with the data access block? We have a search screen with multple search fields. Based on the fields used for the search we have to build a different where statement.

Is there an easy way to accomplish this, or do we have to concatenate strings to get the right query (which is in my opninion pretty ugly)?

Thx in advance.

Dirk

Dec 8, 2010 at 11:18 PM

DAAB has no feature for building dynamic queries, it can only be use to execute them. 

 

Sarah Urmeneta
Global Technologies and Solutions
Avanade, Inc.
entlib.support@avanade.com