Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Design advice re: generic BizObj.Search()
Message
De
23/12/2003 16:47:00
 
Information générale
Forum:
ASP.NET
Catégorie:
Programmation orienté objet
Divers
Thread ID:
00861705
Message ID:
00861774
Vues:
17
Kelly,

I used a similar approach to your XML idea, but I used a DataSet instead (which can be serialized to XML) ... the DataSet has one table that contains the following columns:

ColumnName
ColumnText
ColumnNumber
ColumnDate
AndOr

The ColumnName corresponds to the Database's column name. I have 3 columns for specifying the data ... string, numeric or date data ... it makes it easier to construct the SQL where clause that way. I use "=" in the SQL clause that I generate unless the data contains a wild-card and then I'll use a LIKE instead. I could have just as easily had another column containing the operator.

So, anyway, my approach is similar enough to yours that I'd say you're on the right track with that.

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform