Making a generic data layer
From: SimonH (none_at_hotmail.com)
Date: 01/11/05
- Next message: PK9: "I'm Getting : "syntax error converting datetime from character str"
- Previous message: Mayank Prajapati: "MCSD Materials"
- Next in thread: Miha Markic [MVP C#]: "Re: Making a generic data layer"
- Reply: Miha Markic [MVP C#]: "Re: Making a generic data layer"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 11 Jan 2005 05:56:22 -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
- Next message: PK9: "I'm Getting : "syntax error converting datetime from character str"
- Previous message: Mayank Prajapati: "MCSD Materials"
- Next in thread: Miha Markic [MVP C#]: "Re: Making a generic data layer"
- Reply: Miha Markic [MVP C#]: "Re: Making a generic data layer"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|