Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IDbDataPameter[] in GetEntityList
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01251832
Message ID:
01251841
Vues:
13
E.R.

>Is there a way to loop through a NameValueCollection and add them to IDbDataPameter[]?
>
>I'd like to populate the IDbDataParameter array used in the following method:
>
>Protected Overridable GetEntityList(command as String, dataParams ParamArray IDbDataParameter) As mmBindingList(Of EntityType)

You can loop through NameValueCollection like this:
public static void PrintKeysAndValues( NameValueCollection myCol ) 
{ 
    IEnumerator myEnumerator = myCol.GetEnumerator(); 
    Console.WriteLine( " KEY VALUE" ); 
    foreach ( String s in myCol.AllKeys ) 
        Console.WriteLine( " {0,-10} {1}", s, myCol[s] );
    Console.WriteLine(); 
}
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform