Making a generic Parameter class

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: SimonH (none_at_hotmail.com)
Date: 01/11/05


Date: Tue, 11 Jan 2005 07:01:27 -0800

Hi all,

I would like to make a generic set of methods that could be called regardless
of the database behind the scenes.

One of the methods I would like would take a string sql statement and an
array of DataParameter objects.

The problem i have is there doesnt seem to be a generic DataParameter class
that I can instantiate. There only seems to be specific implementations like
SQLParamater and so on.

The is an interface called IDataParameter or something to that effect, but
of course I can't instantiate an interface.

I need to be able to work with a non-specific parameter object.

Does anyone know what I could do?

Many thanks all

Kindest Regards



Relevant Pages

  • Making a generic data layer
    ... I would like to make a generic set of methods that could be called regardless ... of course I can't instantiate an interface. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Windows Phone 7 Series
    ... reviewers seem to quite dig the interface ... regardless (partly because of? ... "Windows Phone 7 Series" is kind of an awkward name, ... OTOH, because of Apple's integrated model, most users of iPhone OS ...
    (comp.sys.mac.advocacy)
  • Re: Motorola Razr V3C
    ... that they intend to incorporate on all future phones regardless of the brand (and it's rumored that there might even be a future software update that will impose the same interface on the e815). ... The idea is that regardless of the phone brand or model, the interface will be standardized and tech support won't have to reference different manuals and explain differing procedures to access a feature from one phone to the next. ... Of course, the drawbacks are that there is no differnetiation between phone models when it comes to the user interface, and if you don't like the interface, then the only recourse is to go to a different carrier. ...
    (alt.cellular.verizon)
  • Re: Windows Phone 7 Series
    ...  reviewers seem to quite dig the interface ... regardless (partly because of? ... "Windows Phone 7 Series" is kind of an awkward name, ... OTOH, because of Apple's integrated model, most users of iPhone OS ...
    (comp.sys.mac.advocacy)
  • Re: [opensuse] Wireless disconnecting
    ... (replace ethx with the actual interface name). ... Also, that IP address is yours until the end of the lease time, regardless of whether the DHCP server renews or not. ...
    (SuSE)