Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Complex sql statement in BO?
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Complex sql statement in BO?
Divers
Thread ID:
01260843
Message ID:
01260843
Vues:
55
Hi all!
After studying the concepts (not yet productively) of MM I have this question: I often need to give to the user a user interface that allows him to select his data out of a free combination of different criteria. Now Business Object's methods like GetOrdersByCustomerId are not usefull for this.

What would be the "right" way to do it? As Kevin is reccommending to work with Stored Procedures, in this case I think it is not the ideal way, I'd rather use dynamic SQL and build my SQL statement in my Business tier, right? Would you build something like a General method in the BO, such as GetDataFromFreeWhereClause where I build my Where Clause programmatically? Or even (sorry!), as ugly as it is, to construct a where-clause string in the user interface (presentation tier) through the settings of different controls, store it in a form variable and send this to the business tier?

Thanks for sharing your ideas,
Patrick
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform