Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generic data class
Message
From
16/01/2006 17:11:07
 
 
To
16/01/2006 14:01:27
General information
Forum:
ASP.NET
Category:
Databases
Miscellaneous
Thread ID:
01087043
Message ID:
01087358
Views:
9
This message has been marked as the solution to the initial question of the thread.
Hmmm, ok, well I guess I replied too hastily and without having my morning cup of coffee. <g>

Perhaps you need to change the way you use the oParameters collection or, instead have it be a Hashtable ... you'd be passing it a "key" (the parameter name) and "value" (the parameter value) anyway, so it would work the similarly to the way you have it now. Then your Framework.Data class can build the correct type of parameters from the hashtable.

So, to set the parameters, instead of doing this:
        Dim loDataProvider As Framework.Data = New Framework.Data
        loDataProvider.oParameters.Add(New OleDbParameter("@Username", lcUsername))
You'd do this instead:
        Dim loDataProvider As Framework.Data = New Framework.Data
        loDataProvider.oParameters.Add("@Username", lcUsername)
~~Bonnie


>>Haven't messed with it at all, but perhaps you may be able to use the IDataParameter interface for your paramaters.
>
>This cannot be used on an interface. This is the message I receive, a warning, if I do this line:
>
>
>        loDataProvider.oParameters.Add(New IDbDataParameter("@AddUser", 4))
>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform