how to cast a Recordset from ADO a ADO.NET Data Struct

  • Thread starter Thread starter diego
  • Start date Start date
D

diego

Hi!
can somebody tell me
how to cast a Recordset from ADO to a ADO.NET Data Struct
the ado recordset is in a dll that is called from an app
that is being build in C#.NET

Thanks in advance
 
diego said:
Hi!
can somebody tell me
how to cast a Recordset from ADO to a ADO.NET Data Struct
the ado recordset is in a dll that is called from an app
that is being build in C#.NET

Thanks in advance

This is the way I do it

Dim oReturnDataSet As DataSet = New DataSet("ConvertedDS")
Dim oDataAdapter As OleDbDataAdapter = New OleDbDataAdapter

oDataAdapter.Fill(oReturnDataSet, YourRecordSet, "WhateverName")
 
Back
Top