Click here to Skip to main content
15,908,673 members
Home / Discussions / C#
   

C#

 
QuestionOLE DB templates in C# Pin
malli198424-Dec-08 0:58
malli198424-Dec-08 0:58 
Hi,

I've worked on OLE DB templates like DEFINE_COMMAND_EX, BEGIN_PARAM_MAP etc. in VC++. Now I need to convert that functionality into C#. I'm new to C#. So please tell me whether C# is having the similar sort of templates.

Following is an example in VC++ using OLE DB templates

class CGetDetails
{
public:
LONG m_CompanyId;
BEGIN_COLUMN_MAP(CGetDetails)
COLUMN_ENTRY(1, m_CompanyId)
COLUMN_ENTRY(2, m_CompanyName)
END_COLUMN_MAP()

DEFINE_COMMAND_EX(CGetDetails, _T(" SELECT * from companylist"))

BEGIN_PARAM_MAP(CGetDetails)
END_PARAM_MAP()

void ClearRecord()
{
memset(this, 0, sizeof(*this));
}
};

Now I need similar sort of class in C#. Could you please tell me the related possibilities?

Thanks in advance,
Malleswari.
AnswerRe: OLE DB templates in C# Pin
Not Active24-Dec-08 3:30
mentorNot Active24-Dec-08 3:30 
QuestionHow To Get Hard Disk Drivers Pin
Mohammed Elkholy24-Dec-08 0:36
Mohammed Elkholy24-Dec-08 0:36 
AnswerRe: How To Get Hard Disk Drivers Pin
DanB198324-Dec-08 0:56
DanB198324-Dec-08 0:56 
AnswerRe: How To Get Hard Disk Drivers Pin
DaveyM6924-Dec-08 1:12
professionalDaveyM6924-Dec-08 1:12 
AnswerRe: How To Get Hard Disk Drivers Pin
Paddy Boyd24-Dec-08 2:03
Paddy Boyd24-Dec-08 2:03 
QuestionDeveloping Themes Pin
kinnuP24-Dec-08 0:23
kinnuP24-Dec-08 0:23 
AnswerCross post - this has also been asked in the WPF forum. Pin
Pete O'Hanlon24-Dec-08 1:22
mvePete O'Hanlon24-Dec-08 1:22 
Questionrevers axise in the zedgraph Pin
hamidhakimi24-Dec-08 0:06
hamidhakimi24-Dec-08 0:06 
AnswerRe: revers axise in the zedgraph Pin
User 665824-Dec-08 0:57
User 665824-Dec-08 0:57 
QuestionHow to enable ContextmenuStrip for the button? Pin
matixsc23-Dec-08 23:51
professionalmatixsc23-Dec-08 23:51 
AnswerRe: How to enable ContextmenuStrip for the button? Pin
TommyTomToms24-Dec-08 1:18
TommyTomToms24-Dec-08 1:18 
Questionmaking of .csv file at run time Pin
MS Lee23-Dec-08 20:35
MS Lee23-Dec-08 20:35 
AnswerRe: making of .csv file at run time Pin
That's Aragon23-Dec-08 21:41
That's Aragon23-Dec-08 21:41 
AnswerRe: making of .csv file at run time Pin
beatles169223-Dec-08 22:48
beatles169223-Dec-08 22:48 
QuestionGet SQL provider list Pin
That's Aragon23-Dec-08 19:34
That's Aragon23-Dec-08 19:34 
AnswerRe: Get SQL provider list Pin
That's Aragon23-Dec-08 19:54
That's Aragon23-Dec-08 19:54 
GeneralRe: Get SQL provider list Pin
MS Lee23-Dec-08 22:14
MS Lee23-Dec-08 22:14 
GeneralRe: Get SQL provider list Pin
That's Aragon23-Dec-08 22:37
That's Aragon23-Dec-08 22:37 
QuestionProblem while launching an Application through windows service, Process.start() gives an error message Pin
fulbright23-Dec-08 18:44
fulbright23-Dec-08 18:44 
Question3D Canvas class Pin
a_david12323-Dec-08 18:20
a_david12323-Dec-08 18:20 
AnswerRe: 3D Canvas class Pin
Christian Graus23-Dec-08 21:46
protectorChristian Graus23-Dec-08 21:46 
QuestionAn API Question ? Pin
Mohammad Dayyan23-Dec-08 16:52
Mohammad Dayyan23-Dec-08 16:52 
AnswerRe: An API Question ? Pin
Christian Graus23-Dec-08 17:00
protectorChristian Graus23-Dec-08 17:00 
GeneralRe: An API Question ? Pin
Mohammad Dayyan23-Dec-08 17:03
Mohammad Dayyan23-Dec-08 17:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.