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